diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2009-09-10 15:21:16 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2009-09-10 15:21:16 +0000 |
| commit | de5e768557db107106bc3cfc6106055e6af842cb (patch) | |
| tree | f198567433c51b0bff34d7da87544faea76c907c /docs/topics/generic-views.txt | |
| parent | 95393aedc989882190d7f3f4c7afee8e4dc604d3 (diff) | |
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
Diffstat (limited to 'docs/topics/generic-views.txt')
| -rw-r--r-- | docs/topics/generic-views.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/generic-views.txt b/docs/topics/generic-views.txt index c7d751a86b..beadc37a1d 100644 --- a/docs/topics/generic-views.txt +++ b/docs/topics/generic-views.txt @@ -268,9 +268,9 @@ generic view. It's very handy. However, there's actually a subtle bug here -- can you spot it? The problem has to do with when the queries in ``extra_context`` are evaluated. -Because this example puts ``Publisher.objects.all()`` in the URLconf, it will +Because this example puts ``Book.objects.all()`` in the URLconf, it will be evaluated only once (when the URLconf is first loaded). Once you add or -remove publishers, you'll notice that the generic view doesn't reflect those +remove books, you'll notice that the generic view doesn't reflect those changes until you reload the Web server (see :ref:`caching-and-querysets` for more information about when QuerySets are cached and evaluated). |
