Skip to content

Tags: codingjoe/django-select2

Tags

8.4.5

Toggle 8.4.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Use optional chaining for jQuery reference Ref #354

8.4.4

Toggle 8.4.4's commit message
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.

8.4.3

Toggle 8.4.3's commit message

Verified

This commit was signed with the committer’s verified signature.
codingjoe Johannes Maron
Use npm install over CI since we don't maintain a lock file 

8.4.2

Toggle 8.4.2's commit message

Verified

This commit was signed with the committer’s verified signature.
codingjoe Johannes Maron
Use OpenID Connect to publish releases on PyPi & NPMJS 

8.4.1

Toggle 8.4.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge commit from fork 

8.4.0

Toggle 8.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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

8.3.0

Toggle 8.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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]>

8.2.3

Toggle 8.2.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Upgrade to Baseline2024 compliant JS code (#307) Run `styleling --fix`.

8.2.2

Toggle 8.2.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix#297 -- Add Django admin' inline formset support (#300) As described in #249 and #297 django-select2 does not currently work with selects added dynamically in the Django admin. The solution was implemented in #249 and all credit should go to Jurrian Tromp. I only added a small correction: ```diff - jqRow.find('.select2-container').remove() + jqRow.find('.django-select2').parent().find('.select2-container').remove() ``` to only remove `.select2-container` when it is a sibling of `.django-select2`. Otherwise the wrong `.select2-container` might get deleted. --------- Co-authored-by: Johannes Maron <[email protected]>

8.2.1

Toggle 8.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix#292 -- Change admin widgets' JS media ordering (#295) Select2Mixin now loads admin/js/jquery.init.js, just like the AutocompleteMixin of Django Admin. --------- Co-authored-by: Johannes Maron <[email protected]>