1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +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:
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

@@ -154,10 +154,9 @@ ones:
<Field.blank>`, the field will be required.
:attr:`~Field.choices`
An iterable (e.g., a list or tuple) of 2-tuples to use as choices for
this field. If this is given, the default form widget will be a select box
instead of the standard text field and will limit choices to the choices
given.
An :term:`iterable` of 2-tuples to use as choices for this field. If this
is given, the default form widget will be a select box instead of the
standard text field and will limit choices to the choices given.
A choices list looks like this::