forms.ChoiceField.choices

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 model field reference documentation on choices for more details. If the argument is a callable, it is evaluated each time the field’s form is initialized.

doc_Django
2016-10-09 18:36:41
Comments
Leave a Comment

Please login to continue.