From c075d4c2c8cef3c9b28180c749d421c63544a9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Clgen=20Sar=C4=B1kavak?= Date: Sat, 23 Nov 2024 13:25:06 +0300 Subject: [PATCH] Made index view examples consistent in tutorial by removing trailing comma. --- docs/intro/tutorial03.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index 3d59809a0c..a19f9c949d 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -234,9 +234,7 @@ Now let's update our ``index`` view in ``polls/views.py`` to use the template: def index(request): latest_question_list = Question.objects.order_by("-pub_date")[:5] template = loader.get_template("polls/index.html") - context = { - "latest_question_list": latest_question_list, - } + context = {"latest_question_list": latest_question_list} return HttpResponse(template.render(context, request)) That code loads the template called ``polls/index.html`` and passes it a