otto-torino / django-baton

A cool, modern and responsive django admin application based on bootstrap 5 that brings AI to the Django admin - https://baton.sqrt64.it/
MIT License
876 stars 95 forks source link

django-select conflict #256

Closed randalee closed 8 months ago

randalee commented 1 year ago

Django-select2(https://django-select2.readthedocs.io/en/latest/)

If using baton, won't be able to use django-select2. image

Modifying base_site.html to change the order of js loading still causes problems: django-select2 only works if you remove the baton.min.js load. Is there a good way to get django-select2 to work?

abidibo commented 1 year ago

@randalee can you provide an example (repo || codesandbox ||...) with your configuration and usage of select2 please, so it would be easier and faster to look into the issue?

Thanks

informatique-bureau-lquancard commented 11 months ago

Hello, i have the same issue, can you help ? I was using django-jet-reboot, until i found Baton. But since i setted Baton, my select2 doesn't work anymore.

abidibo commented 8 months ago

Please provide a working example to speed up the resolution, thanks

abidibo commented 8 months ago

Never mind, was fixed in 2.9.0. Due to Baton re-exporting jQuery.