### Eclipse Workspace Patch 1.0
#P Django trunk
|
|
|
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 | |