mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
[2.2.x] Changed docs to link to Python's description of iterable.
Backport of e86cc14bd3
from master
This commit is contained in:
parent
0aca34fc83
commit
ed221f7c97
4 changed files with 16 additions and 17 deletions
|
@ -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``
|
||||
--------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue