mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.11.x] Fixed typo in docs/ref/models/querysets.txt.
Backport of 0877989c94130079930419e867ff55fa1fb4f5a0 from master
This commit is contained in:
parent
109fd94c96
commit
48ce204488
@ -3221,7 +3221,7 @@ as the string based lookups passed to
|
|||||||
# This will only execute two queries regardless of the number of Question
|
# This will only execute two queries regardless of the number of Question
|
||||||
# and Choice objects.
|
# and Choice objects.
|
||||||
>>> Question.objects.prefetch_related(Prefetch('choice_set')).all()
|
>>> Question.objects.prefetch_related(Prefetch('choice_set')).all()
|
||||||
<QuerySet [<Question: Question object>]>
|
<QuerySet [<Question: What's up?>]>
|
||||||
|
|
||||||
The ``queryset`` argument supplies a base ``QuerySet`` for the given lookup.
|
The ``queryset`` argument supplies a base ``QuerySet`` for the given lookup.
|
||||||
This is useful to further filter down the prefetch operation, or to call
|
This is useful to further filter down the prefetch operation, or to call
|
||||||
|
Loading…
x
Reference in New Issue
Block a user