mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
[1.11.x] Fixed typo in docs/ref/models/querysets.txt.
Backport of 3bd69b126115102a4630354c876e6c7cc2d68f8f from master
This commit is contained in:
parent
398a79ceb6
commit
0f9de3976c
@ -1088,7 +1088,7 @@ one for the restaurants, one for the pizzas, and one for the toppings.
|
|||||||
|
|
||||||
This will fetch the best pizza and all the toppings for the best pizza for each
|
This will fetch the best pizza and all the toppings for the best pizza for each
|
||||||
restaurant. This will be done in 3 database queries - one for the restaurants,
|
restaurant. This will be done in 3 database queries - one for the restaurants,
|
||||||
one for the 'best pizzas', and one for one for the toppings.
|
one for the 'best pizzas', and one for the toppings.
|
||||||
|
|
||||||
Of course, the ``best_pizza`` relationship could also be fetched using
|
Of course, the ``best_pizza`` relationship could also be fetched using
|
||||||
``select_related`` to reduce the query count to 2:
|
``select_related`` to reduce the query count to 2:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user