1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Changed docs to link to Python's description of iterable.

This commit is contained in:
Jon Dufresne
2019-05-17 08:27:19 -07:00
committed by Carlton Gibson
parent ccb7f7c6d2
commit e86cc14bd3
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::