Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed error in last commit. Thanks Simon Charette.

  • Loading branch information...
commit 6ef199a08e1c452289deda67629b1630d25ccfcf 1 parent df4a74d
@timgraham timgraham authored
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))
Please sign in to comment.
Something went wrong with that request. Please try again.