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:10:50 +0100 |
| commit | 8fce7978307058f9bc7d9f815858f27fdd954409 (patch) | |
| tree | a984997c93b529c79097372812cf57f628616099 /docs/intro/tutorial03.txt | |
| parent | 4252a14c396bb806a86dfda2d0f6a4f3d96c102a (diff) | |
Fixed #23855 -- Removed unnecessary all() in tutorial 3.
Diffstat (limited to 'docs/intro/tutorial03.txt')
| -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 7b40062f28..b428c9afb8 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) |
