Django-enum

Latest version: v2.2.0

Safety actively analyzes 723144 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

2.2.0

What's Changed

Lots of updates to forms. Flag forms are now fully supported.

* Implemented [Need a DRF integration for FlagFields](https://github.com/bckohan/django-enum/issues/113)
* Fixed [FilterSet override of filter_for_lookup disregards meta options.](https://github.com/bckohan/django-enum/issues/111)
* Implemented [Add EnumFlagFilter to support has_any and has_all flag queries.](https://github.com/bckohan/django-enum/issues/110)
* Fixed [Enum types that resolve to primitives of str or int but that do not inherit from those types can result in validation errors.](https://github.com/bckohan/django-enum/issues/109)
* Implemented [Support checkboxes for FlagEnumField](https://github.com/bckohan/django-enum/issues/107)
* Implemented [Support radio buttons for EnumChoiceField](https://github.com/bckohan/django-enum/issues/106)
* Implemented [If default is not provided for flag fields it should be Flag(0).](https://github.com/bckohan/django-enum/issues/105)
* Fixed [EnumFlagFields set empty values to Flag(0) when model field has null=True, default=None](https://github.com/bckohan/django-enum/issues/104)
* Fixed [Large enum fields that inherit from binaryfield have editable=False by default](https://github.com/bckohan/django-enum/issues/103)
* Fixed [EnumFlagField breaks for Flag types that are not constructible from lists of values](https://github.com/bckohan/django-enum/issues/102)
* Implemented [Test all example code in the docs](https://github.com/bckohan/django-enum/issues/99)
* Implemented [Use intersphinx for doc references](https://github.com/bckohan/django-enum/issues/98)
* Implemented [Support Django 5.2](https://github.com/bckohan/django-enum/issues/96)
* Implemented [Upgrade to enum-properties >=2.2](https://github.com/bckohan/django-enum/issues/95)
* Implemented [Move form imports to locally scoped imports where needed in fields.py](https://github.com/bckohan/django-enum/issues/79)
* Implemented [Reorganize documentation using diataxis](https://github.com/bckohan/django-enum/issues/72)
* Implemented [Provide a MultipleEnumChoiceFilter](https://github.com/bckohan/django-enum/issues/25)
* Implemented [Provide an EnumMultipleChoiceField](https://github.com/bckohan/django-enum/issues/24)

New Contributors
* crgwbr made their first contribution in https://github.com/bckohan/django-enum/pull/97

**Full Changelog**: https://github.com/bckohan/django-enum/compare/v2.1.0...v2.2.0

2.1.0

What's Changed

* [Switch poetry -> uv](https://github.com/bckohan/django-enum/issues/87)
* [Add macos runner to CI](https://github.com/bckohan/django-enum/issues/86)
* [Add windows runner to CI](https://github.com/bckohan/django-enum/issues/85)
* [Drop support for python 3.8](https://github.com/bckohan/django-enum/issues/84)
* [Move to justfile dev interface.](https://github.com/bckohan/django-enum/issues/83)
* [Modernize pyproject.toml](https://github.com/bckohan/django-enum/issues/82)

**Full Changelog**: https://github.com/bckohan/django-enum/compare/v2.0.2...v2.1.0

2.0.2

* Fixed [Constraints fail when using a name argument](https://github.com/bckohan/django-enum/issues/77)

What's Changed
* fix migration code samples in docs by bckohan in https://github.com/bckohan/django-enum/pull/76
* V2.0.2 by bckohan in https://github.com/bckohan/django-enum/pull/78


**Full Changelog**: https://github.com/bckohan/django-enum/compare/v2.0.1...v2.0.2

2.0.1

* Fixed [Unexpected ValueError instead of ValidationError](https://github.com/bckohan/django-enum/issues/74)

What's Changed
* V2.x.x by bckohan in https://github.com/bckohan/django-enum/pull/75


**Full Changelog**: https://github.com/bckohan/django-enum/compare/v2.0.0...v2.0.1

2.0.0

🚨 Breaking Changes - See the [migration guide](https://django-enum.readthedocs.io/en/latest/changelog.html#migration-1-x-to-2-x). 🚨

* Completed [Reorganize tests](https://github.com/bckohan/django-enum/issues/70)
* Completed [Switch linting and formatting to ruff](https://github.com/bckohan/django-enum/issues/62)
* Implemented [Install django-stubs when running static type checks.](https://github.com/bckohan/django-enum/issues/60)
* Fixed [When a character enum field allows null and blank=True, form fields and drf fields allow '' to pass through causing errors.](https://github.com/bckohan/django-enum/issues/53)
* Implemented [Supply a mixin for DRF ModelSerializers that instantiates the provided DRF EnumField type for model EnumFields.](https://github.com/bckohan/django-enum/issues/47)
* Implemented [EnumField's should inherit from common base titled EnumField](https://github.com/bckohan/django-enum/issues/46)
* Implemented [Add database constraints on enum fields by default.](https://github.com/bckohan/django-enum/issues/45)
* Fixed [to_python() raises ValueError instead of spec'ed ValidationError](https://github.com/bckohan/django-enum/issues/44)
* Implemented [Add support for date, datetime, timedelta, time and Decimal enumeration types.](https://github.com/bckohan/django-enum/issues/43)
* Fixed [None should be an allowable enumeration value in enums of any primitive type.](https://github.com/bckohan/django-enum/issues/42)
* Implemented [Characterize the performance trade offs of bitfields vs indexed and non-indexed boolean fields.](https://github.com/bckohan/django-enum/issues/41)
* Fixed [When coerce is false, to_python does not convert to the Enum's primitive type](https://github.com/bckohan/django-enum/issues/39)
* Implemented [Provide parameter to override integer range on EnumField.](https://github.com/bckohan/django-enum/issues/38)
* Implemented [Add all official supported Django RDBMS backends to CI](https://github.com/bckohan/django-enum/issues/33)
* Implemented [Support for integer sizes greater than 64 bit](https://github.com/bckohan/django-enum/issues/32)
* Implemented [Provide an optional enum path converter.](https://github.com/bckohan/django-enum/issues/22)
* Implemented [Support flag enumerations](https://github.com/bckohan/django-enum/issues/7)


**Full Changelog**: https://github.com/bckohan/django-enum/compare/v1.3.0...v2.0.0

1.3.3

* Implemented [Support python 3.13](https://github.com/bckohan/django-enum/issues/67)
* Implemented [Drop support for Python 3.7](https://github.com/bckohan/django-enum/issues/68)


What's Changed
* run CI against django 5.1 rc1 by bckohan in https://github.com/bckohan/django-enum/pull/65
* 1.3.x by bckohan in https://github.com/bckohan/django-enum/pull/66
* 1.3.3 by bckohan in https://github.com/bckohan/django-enum/pull/69


**Full Changelog**: https://github.com/bckohan/django-enum/compare/v1.3.2...v1.3.3

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.