mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
[1.11.x] Fixed #27501 -- Documented lazy evaluation of ModelChoiceField.queryset.
Backport of d9aeee205d93b12c96da449c64c1f17ca8786086 from master
This commit is contained in:
parent
092f09fcc1
commit
a364fb3810
@ -1123,9 +1123,9 @@ method::
|
|||||||
|
|
||||||
.. attribute:: queryset
|
.. attribute:: queryset
|
||||||
|
|
||||||
A ``QuerySet`` of model objects from which the choices for the
|
A ``QuerySet`` of model objects from which the choices for the field
|
||||||
field will be derived, and which will be used to validate the
|
are derived and which is used to validate the user's selection. It's
|
||||||
user's selection.
|
evaluated when the form is rendered.
|
||||||
|
|
||||||
``ModelChoiceField`` also takes two optional arguments:
|
``ModelChoiceField`` also takes two optional arguments:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user