Skip to content

Commit a27323e

Browse files
committed
Release 2.0.2
1 parent 86a8f06 commit a27323e

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

33

4+
## [2.0.2]
5+
6+
- Added Django 3.1 support. (Pull #63)
7+
48
## [2.0.1]
59

610
- Fixed get_FIELD_display to handle `None`. (Pull #59)
@@ -9,18 +13,18 @@
913

1014
**Many breaking changes this release.**
1115

12-
- The ``enumfield.enum.Enum`` class is now a subclass of the native `IntEnum`
16+
- The ``enumfield.enum.Enum`` class is now a subclass of the native `IntEnum`
1317
shipped with Python 3.4 (uses the ``enum34`` package on previous versions of Python)
1418
- Renamed `labels` to `__labels__`
1519
- Renamed `_transitions` to `__transitions__`
16-
- Added aliases for the classmethods `Enum.name()` as `Enum.get_name()` and
17-
`Enum.label()` as `Enum.get_label()`. Access the old way
18-
(`Enum.name()` and `Enum.label()`) is still supported though, but the new names
20+
- Added aliases for the classmethods `Enum.name()` as `Enum.get_name()` and
21+
`Enum.label()` as `Enum.get_label()`. Access the old way
22+
(`Enum.name()` and `Enum.label()`) is still supported though, but the new names
1923
are easier to be discovered by IDEs for example.
20-
- `Enum.get_label()` and `Enum.get_name()` now return None if the enum value was
24+
- `Enum.get_label()` and `Enum.get_name()` now return None if the enum value was
2125
not found instead of raising `AttributeError`
2226
- `EnumField` does not automatically set a default which is the first enum value anymore.
23-
Use `Enum.__default__ = VALUE` or pass it explicitly to `EnumField`
27+
Use `Enum.__default__ = VALUE` or pass it explicitly to `EnumField`
2428
- Converted README.rst to markdown (README.md)
2529
- Added Django 2.2 support
2630
- Added Django 3.0b1 support

django_enumfield/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = (2, 0, 1, "final", 0)
1+
VERSION = (2, 0, 2, "final", 0)
22

33

44
def get_version(version=None):

0 commit comments

Comments
 (0)