Permalink
Browse files

[1.5.x] Fixed error in last commit. Thanks Simon Charette.

Backport of 6ef199a from master
  • Loading branch information...
1 parent 891d003 commit b5f8339211ba0c0c2b5bd8ce72b64f12b5547a61 @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 b5f8339

Please sign in to comment.