mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Fixed typo in docs/ref/models/querysets.txt.
This commit is contained in:
parent
346eb32861
commit
3bd69b1261
@ -1078,7 +1078,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…
Reference in New Issue
Block a user