Releases: django-commons/django-enum
Releases · django-commons/django-enum
v2.2.2
- Minor documentation fixes.
Full Changelog: v2.2.1...v2.2.2
v2.2.1
- First release under django-commons ownership!
- Fix all links to reflect new home @ django-commons
Full Changelog: v2.2.0...v2.2.1
v2.2.0
What's Changed
Lots of updates to forms. Flag forms are now fully supported.
- Implemented Need a DRF integration for FlagFields
- Fixed FilterSet override of filter_for_lookup disregards meta options.
- Implemented Add EnumFlagFilter to support has_any and has_all flag queries.
- Fixed Enum types that resolve to primitives of str or int but that do not inherit from those types can result in validation errors.
- Implemented Support checkboxes for FlagEnumField
- Implemented Support radio buttons for EnumChoiceField
- Implemented If default is not provided for flag fields it should be Flag(0).
- Fixed EnumFlagFields set empty values to Flag(0) when model field has null=True, default=None
- Fixed Large enum fields that inherit from binaryfield have editable=False by default
- Fixed EnumFlagField breaks for Flag types that are not constructible from lists of values
- Implemented Test all example code in the docs
- Implemented Use intersphinx for doc references
- Implemented Support Django 5.2
- Implemented Upgrade to enum-properties >=2.2
- Implemented Move form imports to locally scoped imports where needed in fields.py
- Implemented Reorganize documentation using diataxis
- Implemented Provide a MultipleEnumChoiceFilter
- Implemented Provide an EnumMultipleChoiceField
New Contributors
Full Changelog: v2.1.0...v2.2.0
v2.1.0
v2.0.2
What's Changed
Full Changelog: v2.0.1...v2.0.2
v2.0.1
What's Changed
Full Changelog: v2.0.0...v2.0.1
v2.0.0
🚨 Breaking Changes - See the migration guide. 🚨
- Completed Reorganize tests
- Completed Switch linting and formatting to ruff
- Implemented Install django-stubs when running static type checks.
- Fixed When a character enum field allows null and blank=True, form fields and drf fields allow '' to pass through causing errors.
- Implemented Supply a mixin for DRF ModelSerializers that instantiates the provided DRF EnumField type for model EnumFields.
- Implemented EnumField's should inherit from common base titled EnumField
- Implemented Add database constraints on enum fields by default.
- Fixed to_python() raises ValueError instead of spec'ed ValidationError
- Implemented Add support for date, datetime, timedelta, time and Decimal enumeration types.
- Fixed None should be an allowable enumeration value in enums of any primitive type.
- Implemented Characterize the performance trade offs of bitfields vs indexed and non-indexed boolean fields.
- Fixed When coerce is false, to_python does not convert to the Enum's primitive type
- Implemented Provide parameter to override integer range on EnumField.
- Implemented Add all official supported Django RDBMS backends to CI
- Implemented Support for integer sizes greater than 64 bit
- Implemented Provide an optional enum path converter.
- Implemented Support flag enumerations
Full Changelog: v1.3.0...v2.0.0
v1.3.3
- Implemented Support python 3.13
- Implemented Drop support for Python 3.7
What's Changed
Full Changelog: v1.3.2...v1.3.3
v1.3.2
v1.3.1
Full Changelog: v1.3.0...v1.3.1