Choicesenum

Latest version: v0.7.0

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

Scan your dependencies

Page 2 of 3

0.4.0

------------------

* Optimistic casting of inner types (thanks gabisurita).
* Optional stdlib patch to automagic json serialization support.
* Add Python3.7 to the test matrix.

0.3.0

------------------

* 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]`).

0.2.2

------------------

* Fix: Support queries through `select_related` with no `None` value defined (thanks klette).

0.2.1

------------------

* Fix South migrations for Django 1.6.

0.2.0

------------------

* ``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]``).

0.1.7

------------------

* Fix: ``ChoicesEnum`` is now hashable (thanks jodal).

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.