diff options
| author | Tim Graham <timograham@gmail.com> | 2013-06-20 10:41:29 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-06-20 10:41:29 -0400 |
| commit | 6ef199a08e1c452289deda67629b1630d25ccfcf (patch) | |
| tree | acd94195253538e49bdfd2f88bb887292f4bc280 /docs/intro/tutorial03.txt | |
| parent | df4a74d7097f15cc271fee1c797dee3b96755066 (diff) | |
Fixed error in last commit. Thanks Simon Charette.
Diffstat (limited to 'docs/intro/tutorial03.txt')
| -rw-r--r-- | docs/intro/tutorial03.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index d9f3f50a0d..91409848cf 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)) |
