Permalink
Browse files

Fixed error in last commit. Thanks Simon Charette.

  • Loading branch information...
1 parent df4a74d commit 6ef199a08e1c452289deda67629b1630d25ccfcf @timgraham timgraham committed Jun 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/intro/tutorial03.txt
View
2 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))

0 comments on commit 6ef199a

Please sign in to comment.