- Support Python 3.11 and Django 4.1 (by @vitaliyf)
- Move CI to GitHub Actions
- Dropped support for Python < 3.7
- Dropped support for Django < 2.2
- Added support for Django 3.2
- Added support for Python 3.10
- Added support for Django 4.0
- Added Django 3.1 support. (Pull #63)
- Fixed get_FIELD_display to handle
None
. (Pull #59)
Many breaking changes this release.
- The
enumfield.enum.Enum
class is now a subclass of the nativeIntEnum
shipped with Python 3.4 (uses theenum34
package on previous versions of Python) - Renamed
labels
to__labels__
- Renamed
_transitions
to__transitions__
- Added aliases for the classmethods
Enum.name()
asEnum.get_name()
andEnum.label()
asEnum.get_label()
. Access the old way (Enum.name()
andEnum.label()
) is still supported though, but the new names are easier to be discovered by IDEs for example. Enum.get_label()
andEnum.get_name()
now return None if the enum value was not found instead of raisingAttributeError
EnumField
does not automatically set a default which is the first enum value anymore. UseEnum.__default__ = VALUE
or pass it explicitly toEnumField
- Converted README.rst to markdown (README.md)
- Added Django 2.2 support
- Added Django 3.0b1 support
- Dropped support for Django < 1.11
- Added limited mypy support
- Added Django 2.1 support
- Added Python 3.7 support
- Dropped Python 3.3 support
- Added Django 1.11 support (from #43)
- Added Python 3.6 support
- Dropped support for Django < 1.8