Closed jamiecollinson closed 7 years ago
Friendly bump in case anyone can help - I've really hit a brick wall with this and would love to use the project if I can but will shortly have to abandon it if I can't resolve :-(
Hi @jamiecollinson , thank you for reporting the issue, it seems that in the last version we introduced an issue with the loading order of select2.js. The referenced PR should fix it - I would appreciate if you could give that branch a try.
I've just upgraded an old django project from 1.3 -> 1.8 and am trying to add django-advanced-features to replace an old custom filtering application.
I've installed django_advanced_filters 1.0.5, and django_easy_select2 1.2.5. I've followed the installation guide and successfully added the
AdminAdvancedFiltersMixin
to one of my models. I can see the admin templates are loading correctly but I seem to be getting JS errors related to select2.E.g. on
http://localhost:8080/admin/advanced_filters/advancedfilter/2/
I see:And on my model changelist page (
http://localhost:8080/admin/mymodel/
):This looks to me like some kind of jquery load order issue, and I'm aware django does some funny things with various versions, but I'm a bit stuck on how to debug. Can anyone point me in the right direction? I did wonder if it's due to the several difference versions of jquery loading and re-initialising
$
, but I believe django does some clever stuff to namespace the versions. In case it's helpful here are the.js
files loading on my model changelist page: