diff options
| author | Tim Graham <timograham@gmail.com> | 2014-11-17 18:10:50 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-17 18:12:19 +0100 |
| commit | 5a6d6c5e0b70418ef0ead321879c88dc861e5538 (patch) | |
| tree | d71be4d0bab27db6a7c721bbbefe3fb2db713766 /docs | |
| parent | b2534bfa7b3b4f9d5e6c4db48556d2ae6ba3b4a9 (diff) | |
[1.7.x] Fixed #23855 -- Removed unnecessary all() in tutorial 3.
Backport of 8fce7978307058f9bc7d9f815858f27fdd954409 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/intro/tutorial03.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index c989ee0d1f..59e68ef6bb 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -409,7 +409,7 @@ rewritten: def index(request): - latest_question_list = Question.objects.all().order_by('-pub_date')[:5] + latest_question_list = Question.objects.order_by('-pub_date')[:5] context = {'latest_question_list': latest_question_list} return render(request, 'polls/index.html', context) |
