Releases: goinnn/django-multiselectfield
v1.0.1
v1.0.0
This release introduces multiple changes that are incompatible with previous versions.
The major version number has been incremented following Semantic Versioning (SemVer) <https://semver.org/>_, as several components of the package have changed in ways that may require updates in client code.
The internal codebase has been significantly cleaned up and reorganized, making it more maintainable and consistent.
This version contains 40% fewer lines of code compared to the previous release.
Less code means fewer bugs, easier maintenance, and better long-term sustainability.
-
Breaking changes
-
Remove MSFList (01dcad230dc368b88a39bfc36f90ddd145f381a2):
- Removed: (50d3f785883e0a314f2dc89950e3fe1e88a7ede6)
- It was created to support MultiSelectFields in admin.list_display, but it never actually worked. If you add a multiselect field to list_display, Django does not call to str method of MSGList (renamed to MSFList)
- It was created for integer choices too and it is a misconception. This is explained in the README file.
-
Remove MSFFlatchoices (01dcad230dc368b88a39bfc36f90ddd145f381a2):
- Removed: (5638247c1d70670d4f81adf35143ef17a7d7575e)
- In list_display, labels for the choices are now shown (comma-separated) instead of the values of the choices (comma-separated).
-
In to_python method, value is a list or a string. (c4579138dda2833cbce26afbf57da5353aa45690)
- Remove set case and dict case
- If this breaks something, please create a test to help understand the use case.
-
Removing integer choices:
- It was a mistake. MultiSelectField inherits of CharField, not IntegerField.
- It is impossible knows if original choice is (1, 'Item title 2.1') or ('1', 'Item title 2.1')
-
-
Fix: Form instance generated twice since Django (#168)
-
Fix CSS admin:
-
Fix Properly Display Categorized Choices in get_FOO_display (#169)
-
SortMultiSelectField: (#172)
-
Documentation:
-
How to add a filter to the Django administration:
- (e36cbae4c3b39dac4a3fee03fdda9622a101f22d)
- Inspired by (#116)
-
How add a django multiselect field to list_display in Django administration
-
How to add support for read-only fields in the Django administration:
-
-
Cleanup: Removed outdated code and updated compatibility:
v0.1.13
v0.1.12
Update version
Django 3 update
v0.1.11 Update version
back compatibility
Merge pull request #99 from goinnn/add-back-compatibility Add back compatibility
Fix picking MSFList
v0.1.8 Bump version for PyPI release