Code

Ticket #11477: 11477.diff

File 11477.diff, 948 bytes (added by SmileyChris, 5 years ago)
Line 
1### Eclipse Workspace Patch 1.0
2#P Django trunk
3Index: docs/topics/generic-views.txt
4===================================================================
5--- docs/topics/generic-views.txt       (revision 11453)
6+++ docs/topics/generic-views.txt       (working copy)
7@@ -268,9 +268,9 @@
8 However, there's actually a subtle bug here -- can you spot it?
9 
10 The problem has to do with when the queries in ``extra_context`` are evaluated.
11-Because this example puts ``Publisher.objects.all()`` in the URLconf, it will
12+Because this example puts ``Book.objects.all()`` in the URLconf, it will
13 be evaluated only once (when the URLconf is first loaded). Once you add or
14-remove publishers, you'll notice that the generic view doesn't reflect those
15+remove books, you'll notice that the generic view doesn't reflect those
16 changes until you reload the Web server (see :ref:`caching-and-querysets`
17 for more information about when QuerySets are cached and evaluated).
18