diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index a2cd2ebed2..96b1b03942 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -762,9 +762,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.