mirror of
https://github.com/django/django.git
synced 2025-08-23 10:19:13 +00:00
[1.7.x] Fixed typos of "select_related" in docs.
Backport of 7d363ed43247a80d2b764723e1bf6e0e6da4e82f from master
This commit is contained in:
parent
2401ef8682
commit
d3404c1ca8
@ -771,8 +771,8 @@ You can use ``select_related()`` with any queryset of objects::
|
|||||||
The order of ``filter()`` and ``select_related()`` chaining isn't important.
|
The order of ``filter()`` and ``select_related()`` chaining isn't important.
|
||||||
These querysets are equivalent::
|
These querysets are equivalent::
|
||||||
|
|
||||||
Entry.objects.filter(pub_date__gt=timezone.now()).selected_related('blog')
|
Entry.objects.filter(pub_date__gt=timezone.now()).select_related('blog')
|
||||||
Entry.objects.selected_related('blog').filter(pub_date__gt=timezone.now())
|
Entry.objects.select_related('blog').filter(pub_date__gt=timezone.now())
|
||||||
|
|
||||||
You can follow foreign keys in a similar way to querying them. If you have the
|
You can follow foreign keys in a similar way to querying them. If you have the
|
||||||
following models::
|
following models::
|
||||||
|
Loading…
x
Reference in New Issue
Block a user