From 5f919b9c81a26832f98033335a601ec1ca718db7 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 24 Jul 2014 13:57:00 -0400 Subject: [PATCH] Fixed #23094 -- Removed redundant argument in select_related() example. Thanks thegeekofalltrades at gmail.com for the report. --- docs/ref/models/querysets.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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.