Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #14307 -- Linked ChoiceField.choices docs to Field.choices docs…

… to explain the formatting options available. Thanks to adamv for the report and Russ for the suggested fix.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7f5698de1d73399e5e0b9cb0950e964c61046c30 1 parent 2197b56
Gabriel Hurley authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 docs/ref/forms/fields.txt
View
6 docs/ref/forms/fields.txt
@@ -352,7 +352,11 @@ Takes one extra required argument:
.. attribute:: ChoiceField.choices
An iterable (e.g., a list or tuple) of 2-tuples to use as choices for this
- field.
+ field. 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.
+
+ .. _model field reference documentation on choices: ../models/fields#choices
``TypedChoiceField``
~~~~~~~~~~~~~~~~~~~~
Please sign in to comment.
Something went wrong with that request. Please try again.