summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSean Marlow <smarlowucf@gmail.com>2016-07-06 12:11:43 -0400
committerTim Graham <timograham@gmail.com>2016-07-08 11:30:26 -0400
commitfda151e512a7da8a45416da3828f2109486b6822 (patch)
tree5772c1689a04c86ef146524731a038d35c173202 /docs
parentd58a27c3491f6e98ca4cb4fbdb8d867a21ce2e25 (diff)
[1.10.x] Fixed #26837 -- Documented ModelMultipleChoiceField.to_field_name
Backport of 8b9e16ec858c23cb65ea5de95f65a71b31521841 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/forms/fields.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index ee1b59943b..49e326b300 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -1209,13 +1209,19 @@ method::
Allows the selection of one or more model objects, suitable for
representing a many-to-many relation. As with :class:`ModelChoiceField`,
you can use ``label_from_instance`` to customize the object
- representations, and ``queryset`` is a required parameter:
+ representations.
+
+ A single argument is required:
.. attribute:: queryset
- A ``QuerySet`` of model objects from which the choices for the
- field will be derived, and which will be used to validate the
- user's selection.
+ Same as :class:`ModelChoiceField.queryset`.
+
+ Takes one optional argument:
+
+ .. attribute:: to_field_name
+
+ Same as :class:`ModelChoiceField.to_field_name`.
Creating custom fields
======================