diff options
| author | Tim Graham <timograham@gmail.com> | 2015-07-08 15:11:40 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-07-08 15:12:24 -0400 |
| commit | 2dbef357145a57aa29fe8a0f3a2010aed41738f7 (patch) | |
| tree | 3ed0de6dc4a00dd07e631ba4a49e0852aacfe6f1 | |
| parent | 5e1fa1400609aae2a021d348c7b5c5bd42ecb3b8 (diff) | |
[1.8.x] Removed a confusing sentence in tutorial 5.
Backport of bdfce4db21d3a414dac4e7cd874fae655ce142de from master
| -rw-r--r-- | docs/intro/tutorial05.txt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt index 0f08f7fc61..db5187bc90 100644 --- a/docs/intro/tutorial05.txt +++ b/docs/intro/tutorial05.txt @@ -407,10 +407,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: |
