Forums

Patch Django

Hello, I'm working on a Many-To-Many model where one of the tables has 22k+ records. The filter_horizontal api takes forever to load. I found out that this is a known problem (https://code.djangoproject.com/ticket/3202) and there is a patch available that significantly improves the loading times. I found out that the django files stored in my bash environment are READ-ONLY and I have no simple way to patch it. Is there any way I could edit those the .js files in the python2.7/site-packages/django/contrib/admin/media/js folder?

Thanks, E

We're not going to patch it for everyone, but you can do it yourself by installing Django into a virtualenv and patching your copy. Here's a tutorial on getting that the work.

@ ehebel: Welcome to PA! Good to have you here. This platform is getting better by the day. I'm sure you'll find there are almost always answers to the problems we encounter. I look forward to getting to know you as you make a home here...☺