1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed #27501 -- Documented lazy evaluation of ModelChoiceField.queryset.

This commit is contained in:
chillaranand 2017-01-27 01:33:58 +05:30 committed by Tim Graham
parent 8ae90c58ac
commit d9aeee205d

View File

@ -1121,9 +1121,9 @@ method::
.. 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.
A ``QuerySet`` of model objects from which the choices for the field
are derived and which is used to validate the user's selection. It's
evaluated when the form is rendered.
``ModelChoiceField`` also takes two optional arguments: