Skip to content

Tags: codingjoe/django-select2

Tags

8.4.0

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

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 <johannes@maron.family>

8.2.3

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

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 <johannes@maron.family>

8.2.1

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 <johannes@maron.family>

8.2.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add ModelSelect2Mixin.result_from_instance method (#272)

Enable users to easily override the result JSON per widget without implementing a separate view.

---------

Co-authored-by: Johannes Maron <johannes@maron.family>

8.1.2

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
[Django 4.1+] Make i18n works for LANGUAGE_CODE with a country code (#…

…206)

When using a `LANGUAGE_CODE` with a country code and a supported
language (_ie_: `fr-FR`) the current implementation of
`Select2Mixin.i18n_name` will return `None` which means default
_select2_ language, so English.


Co-authored-by: Johannes Maron <johannes@maron.family>

8.1.1

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Fix extraneous dot

8.1.0

Fix #188 -- Add graphviz to RTD config

8.0.0

Change default Select2 version to Django's vendored version