summaryrefslogtreecommitdiff
path: root/docs/ref/forms/fields.txt
diff options
context:
space:
mode:
authorDavid Sanders <shang.xiao.sanders@gmail.com>2023-07-19 00:12:43 +1000
committerGitHub <noreply@github.com>2023-07-18 11:12:43 -0300
commitf8c43aca467b7b0c4bb0a7fa41362f90b610b8df (patch)
treeed3e643ae54de56548350d1cafa511beba9b3283 /docs/ref/forms/fields.txt
parent3109038992321e471944bd8ee36670c9e6b8ff0c (diff)
Added reference to TypedChoiceField in ChoiceField docs.
Diffstat (limited to 'docs/ref/forms/fields.txt')
-rw-r--r--docs/ref/forms/fields.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 77ccc9e862..dad5f1bbb8 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -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>`