Added reference to TypedChoiceField in ChoiceField docs.

This commit is contained in:
David Sanders 2023-07-19 00:12:43 +10:00 committed by GitHub
parent 3109038992
commit f8c43aca46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -494,6 +494,12 @@ For each field, we describe the default widget used if you don't specify
time the field's form is initialized, in addition to during rendering.
Defaults to an empty list.
.. admonition:: Choice type
This field normalizes choices to strings, so if choices are required in
other data types, such as integers or booleans, consider using
:class:`TypedChoiceField` instead.
.. versionchanged:: 5.0
Support for using :ref:`enumeration types <field-choices-enum-types>`