You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix jQuery preference order to prevent conflicts with third-party wid…
…gets
When other Django admin widgets (like PrettyJSONWidget, JSONEditor, etc.)
load their own jQuery, they overwrite the global `jQuery` variable. Since
django_select2.js prefers `jQuery` over `window.django.jQuery`, it ends up
using the newly loaded jQuery instance which doesn't have Select2 attached.
This causes "$element.select2 is not a function" errors on admin pages.
By preferring `window.django.jQuery` (Django's protected instance), we ensure
Select2 functionality works regardless of what other widgets do to the global
jQuery variable.
Fix#136 -- Support dependent fields in formsets (#316)
* Find the closest common ancestor of two chained selects instead of
assuming it is a form.
* Try to find the dependent field by its name attribute using a two-fold
search strategy: exact match otherwise ends with
Special thanks to @rez0n
Drop official support for EOL Python and Django versions (#313)
* Drop Django < 4.2 LTS support
* Drop Django 5.0 support
* Drop Python < 3.10 support
* Update CI node version to lts/*
---------
Co-authored-by: Johannes Maron <[email protected]>