summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/querysets.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 836c5ff536..93aaaaf810 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -766,9 +766,8 @@ following models::
# ...
author = models.ForeignKey(Person)
-...then a call to ``Book.objects.select_related('person',
-'person__city').get(id=4)`` will cache the related ``Person`` *and* the related
-``City``::
+... then a call to ``Book.objects.select_related('person__city').get(id=4)``
+will cache the related ``Person`` *and* the related ``City``::
b = Book.objects.select_related('person__city').get(id=4)
p = b.author # Doesn't hit the database.