diff options
| author | David Sanders <shang.xiao.sanders@gmail.com> | 2023-07-19 00:12:43 +1000 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2023-07-18 12:06:59 -0300 |
| commit | c646412a7594418985ccda02043f35c05da15b1c (patch) | |
| tree | 51128d72baad2f0d7ecae428ad6ba260a33f942a | |
| parent | f474ba4cb52a41a62da6d6fb3492a95eeb8b3999 (diff) | |
Added reference to TypedChoiceField in ChoiceField docs.
| -rw-r--r-- | docs/ref/forms/fields.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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`` ------------- |
