From c646412a7594418985ccda02043f35c05da15b1c Mon Sep 17 00:00:00 2001 From: David Sanders Date: Wed, 19 Jul 2023 00:12:43 +1000 Subject: [PATCH] Added reference to TypedChoiceField in ChoiceField docs. --- docs/ref/forms/fields.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 1e4f8f957e..1a7274e0d1 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -449,6 +449,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. + ``DateField`` -------------