summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial05.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/intro/tutorial05.txt')
-rw-r--r--docs/intro/tutorial05.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt
index 4757b52624..5e36f26bf7 100644
--- a/docs/intro/tutorial05.txt
+++ b/docs/intro/tutorial05.txt
@@ -405,10 +405,7 @@ based on :class:`~django.views.generic.list.ListView`:
"""Return the last five published questions."""
return Question.objects.order_by('-pub_date')[:5]
-``response.context_data['latest_question_list']`` extracts the data this view
-places into the context.
-
-We need to amend the ``get_queryset`` method and change it so that it also
+We need to amend the ``get_queryset()`` method and change it so that it also
checks the date by comparing it with ``timezone.now()``. First we need to add
an import: