JQuery Conflict with Django.ModelAdmin.autocomplete_fields
See original GitHub issueThe problem is caused by the use of different jQuery files. Django relies on jquery.js (the one with ajax functions) to work, while map-widgets uses the jquery-3.3.1.slim.min.js (which has ajax stripped away). autocomplete_fields
will thus stop working.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
How to prevent Error: 403 in ModelAdmin.autocomplete_fields?
That's because of the conflict between DAL and Django 3.2 + versions. If you turn DAL off it can solve this problem.
Read more >The Django admin site
One of the most powerful parts of Django is the automatic admin interface. ... To avoid conflicts with user-supplied scripts or libraries, Django's...
Read more >Change log for django-autocomplete-light - Read the Docs
#463 Update jquery-autocomplete-light which contains IE8 fixes. ... Note that we have also extracted django admin specific hooks from widget.js into ...
Read more >Using jQuery.noConflict() instead of jQuery ... - Google Groups
admin places jQuery in its own namespace `django.jQuery`. In this way other jQuery instances should not conflict with it. 2) It also removes...
Read more >[Solved]-Jquery Autocomplete limit results with Django-django
Difficulty with Django and jQuery (why is $ undefined in the admin app?) Limit the queryset of autocomplete fields in Django · Incorrect...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For now my temporary fix is to simply override the class and remove the slim from jquery and then everything works fine in the admin panel by using my custom widget.
@erdem great! thanks for fixing this 🎉