[2.2.x] Changed docs to link to Python's description of iterable.

Backport of e86cc14bd3 from master
This commit is contained in:
Jon Dufresne 2019-05-17 08:27:19 -07:00 committed by Carlton Gibson
parent 0aca34fc83
commit ed221f7c97
4 changed files with 16 additions and 17 deletions

View file

@ -407,13 +407,13 @@ For each field, we describe the default widget used if you don't specify
.. attribute:: choices
Either an iterable (e.g., a list or tuple) 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.
Defaults to an empty list.
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. Defaults to an
empty list.
``TypedChoiceField``
--------------------