Change Log¶
v2.0.2 (2024-09-25)¶
v2.0.1 (2024-09-16)¶
v2.0.0 (2024-09-09)¶
Completed Reorganize tests
Completed Switch linting and formatting to ruff
Implemented Install django-stubs when running static type checks.
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
Migration from 1.x -> 2.x¶
Imports of enum-properties extended
TextChoices
andIntegerChoices
have been changed:# 1.x way from django_enum import TextChoices, IntegerChoices # 2.x way from django_enum.choices import TextChoices, IntegerChoices
Imports of
EnumChoiceField
for django forms has been changed:# 1.x way from django_enum import EnumChoiceField # 2.x way from django_enum.forms import EnumChoiceField
Imports of
EnumFilter
andFilterSet
has been changed:# 1.x way from django_enum import EnumFilter, FilterSet # 2.x way from django_enum.filters import EnumFilter, FilterSet
Strict
EnumField
values are now constrained at the database level using CheckConstraints by default. To disable this behavior, set theconstrained
parameter toFalse
.
v1.3.3 (2024-08-26)¶
Implemented Support python 3.13
Implemented Drop support for Python 3.7
v1.3.2 (2024-07-15)¶
Fixed Support Django 5.1
v1.3.1 (2024-03-02)¶
v1.3.0 (2023-12-13)¶
v1.2.2 (2023-10-02)¶
v1.2.1 (2023-04-08)¶
v1.2.0 (2023-04-02)¶
v1.1.2 (2023-02-15)¶
v1.1.1 (2023-01-15)¶
v1.1.0 (2022-08-13)¶
v1.0.1 (2022-08-11)¶
Fix dependency issue - allow python 3.6
v1.0.0 (2022-08-11)¶
Initial Re-Release (production/stable)
v0.1.0 (2010-09-18)¶
Legacy django-enum library maintained by Jacob Smullyan. Source located here.