|
1 | 1 | # Changelog
|
2 | 2 |
|
3 | 3 |
|
| 4 | +## [2.0.2] |
| 5 | + |
| 6 | +- Added Django 3.1 support. (Pull #63) |
| 7 | + |
4 | 8 | ## [2.0.1]
|
5 | 9 |
|
6 | 10 | - Fixed get_FIELD_display to handle `None`. (Pull #59)
|
|
9 | 13 |
|
10 | 14 | **Many breaking changes this release.**
|
11 | 15 |
|
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` |
13 | 17 | shipped with Python 3.4 (uses the ``enum34`` package on previous versions of Python)
|
14 | 18 | - Renamed `labels` to `__labels__`
|
15 | 19 | - 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 |
19 | 23 | 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 |
21 | 25 | not found instead of raising `AttributeError`
|
22 | 26 | - `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` |
24 | 28 | - Converted README.rst to markdown (README.md)
|
25 | 29 | - Added Django 2.2 support
|
26 | 30 | - Added Django 3.0b1 support
|
|
0 commit comments