- Add support Django 3.0 (tks @klette).
- Drop support for Python 3.4.
- Fix issue when using Django EnumIntegerField on Admin.
- Adding schematics contrib type ChoicesEnumType.
- Drop support for Django 1.6, 1.7, 1.8.
- Fix Django migrations with default values for Django 1.7+.
- Optimize member check and dynamic creation of is_<name> properties.
- Fix readme RST (requires new Pypi upload).
- Membership test (item in Enum) returning valid results for primitive values.
- New dict-like .get method able to return a default value (thanks @leandrogs).
- Django: Support Postgres array functions and queries (thanks @tomfa).
- Django: Support for deferring an enum field using queryset.defer() (thanks @noamkush).
- Django: 2.1 support.
- Optimistic casting of inner types (thanks @gabisurita).
- Optional stdlib patch to automagic json serialization support.
- Add Python3.7 to the test matrix.
- Official Django 2.0 support (0.2.2 just works fine too).
ChoicesEnum
sharing the same hash() as his value. Can be used to retrieve/restore items in dicts (d[enum] == d[enum.value]).
- Fix: Support queries through select_related with no None value defined (thanks @klette).
- Fix South migrations for Django 1.6.
ChoicesEnum
items are comparable by their values (==, !=, >, >=, <, <=) (thanks @jodal).- +``ChoicesEnum.values``: Returns all the Enum's raw values (eq:
[x.value for x in Enum]
).
- Fix:
ChoicesEnum
is now hashable (thanks @jodal).
- Fix: Proxy
__len__
calls to the inner enum value.
- +ChoicesEnum.description: Alias for label, allow enum descriptors to be used by Graphene.
- Fix South migrations for Django 1.6.
ChoicesEnum
repr can be used to reconstruct an instance (item == eval(repr(item))
).
- Fix sdist not including sub-modules (django contrib).
- README fixes and improvements.
- First release on PyPI.