summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2020-10-17 16:17:00 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-10-17 20:30:57 +0200
commit7f85498eef1d8fcc52e4fb70df8041f5452d405a (patch)
tree8ba385202b2870a7c6d1f6bc1622144b058e136e /docs/ref/forms
parentaf87574a3c3df61cf2f829909977e347118e6480 (diff)
Fixed #32110 -- Doc'd and tested enumerations for ChoiceField.choices.
Diffstat (limited to 'docs/ref/forms')
-rw-r--r--docs/ref/forms/fields.txt13
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 9cff981022..6e1033dc43 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -410,12 +410,13 @@ For each field, we describe the default widget used if you don't specify
.. attribute:: choices
Either an :term:`iterable` of 2-tuples to use as choices for this
- field, or a callable that returns such an iterable. This argument
- accepts the same formats as the ``choices`` argument to a model field.
- See the :ref:`model field reference documentation on choices
- <field-choices>` for more details. If the argument is a callable, it is
- evaluated each time the field's form is initialized, in addition to
- during rendering. Defaults to an empty list.
+ field, :ref:`enumeration <field-choices-enum-types>` choices, or a
+ callable that returns such an iterable. This argument accepts the same
+ formats as the ``choices`` argument to a model field. See the
+ :ref:`model field reference documentation on choices <field-choices>`
+ for more details. If the argument is a callable, it is evaluated each
+ time the field's form is initialized, in addition to during rendering.
+ Defaults to an empty list.
``TypedChoiceField``
--------------------