From b5f8339211ba0c0c2b5bd8ce72b64f12b5547a61 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 20 Jun 2013 10:41:29 -0400 Subject: [PATCH] [1.5.x] Fixed error in last commit. Thanks Simon Charette. Backport of 6ef199a08e from master --- docs/intro/tutorial03.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index d0c56f2087..87fac2c211 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -346,7 +346,7 @@ Now let's update our ``index`` view in ``polls/views.py`` to use the template:: def index(request): latest_poll_list = Poll.objects.order_by('-pub_date')[:5] template = loader.get_template('polls/index.html') - context = RequestContext({ + context = RequestContext(request, { 'latest_poll_list': latest_poll_list, }) return HttpResponse(template.render(context))