mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #23855 -- Removed unnecessary all() in tutorial 3.
This commit is contained in:
parent
4252a14c39
commit
8fce797830
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue