Kaydet (Commit) 8fce7978 authored tarafından Tim Graham's avatar Tim Graham

Fixed #23855 -- Removed unnecessary all() in tutorial 3.

üst 4252a14c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment