diff options
| author | T. Franzel <tfranzel@users.noreply.github.com> | 2023-03-11 00:34:13 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-03-21 19:44:41 +0100 |
| commit | a2eaea8f22305b57dff3ab13add2e2887287bb6f (patch) | |
| tree | a2f1acee503899e52a583572a46aeee0d1a5432c /docs/releases | |
| parent | 051d5944f86400b9b3476db60bc73de7e9964810 (diff) | |
Fixed #34388 -- Allowed using choice enumeration types directly on model and form fields.
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/5.0.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt index 7dee6c4575..f5a5c568bc 100644 --- a/docs/releases/5.0.txt +++ b/docs/releases/5.0.txt @@ -167,7 +167,9 @@ File Uploads Forms ~~~~~ -* ... +* :attr:`.ChoiceField.choices` now accepts + :ref:`Choices classes <field-choices-enum-types>` directly instead of + requiring expansion with the ``choices`` attribute. Generic Views ~~~~~~~~~~~~~ @@ -208,6 +210,10 @@ Models of ``ValidationError`` raised during :ref:`model validation <validating-objects>`. +* :attr:`.Field.choices` now accepts + :ref:`Choices classes <field-choices-enum-types>` directly instead of + requiring expansion with the ``choices`` attribute. + Requests and Responses ~~~~~~~~~~~~~~~~~~~~~~ |
