Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #11477: Generic views docs point out bug with wrong queryset

Thanks SmileyChris



git-svn-id: http://code.djangoproject.com/svn/django/trunk@11484 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit de5e768557db107106bc3cfc6106055e6af842cb 1 parent 95393ae
Luke Plant authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/topics/generic-views.txt
4  docs/topics/generic-views.txt
@@ -268,9 +268,9 @@ generic view. It's very handy.
268 268
 However, there's actually a subtle bug here -- can you spot it?
269 269
 
270 270
 The problem has to do with when the queries in ``extra_context`` are evaluated.
271  
-Because this example puts ``Publisher.objects.all()`` in the URLconf, it will
  271
+Because this example puts ``Book.objects.all()`` in the URLconf, it will
272 272
 be evaluated only once (when the URLconf is first loaded). Once you add or
273  
-remove publishers, you'll notice that the generic view doesn't reflect those
  273
+remove books, you'll notice that the generic view doesn't reflect those
274 274
 changes until you reload the Web server (see :ref:`caching-and-querysets`
275 275
 for more information about when QuerySets are cached and evaluated).
276 276
 

0 notes on commit de5e768

Please sign in to comment.
Something went wrong with that request. Please try again.