summaryrefslogtreecommitdiff
path: root/docs/tutorial03.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-01-23 04:31:02 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-01-23 04:31:02 +0000
commita670fccf79217405e34155319e03d1ed1e2e1390 (patch)
tree7bb1be426d74893771c90e1e7d4219665e61bb17 /docs/tutorial03.txt
parent8c4c07b5d0f56c2f9359923606305141cf9be99c (diff)
newforms-admin: Merged to [4399]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial03.txt')
-rw-r--r--docs/tutorial03.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/tutorial03.txt b/docs/tutorial03.txt
index 41d11d9e6e..69984cb47a 100644
--- a/docs/tutorial03.txt
+++ b/docs/tutorial03.txt
@@ -260,8 +260,7 @@ provides a shortcut. Here's the full ``index()`` view, rewritten::
latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
return render_to_response('polls/index.html', {'latest_poll_list': latest_poll_list})
-Note that we no longer need to import ``loader``, ``Context`` or
-``HttpResponse``.
+Note that once we've done this in all these views, we no longer need to import ``loader``, ``Context`` and ``HttpResponse``.
The ``render_to_response()`` function takes a template name as its first
argument and a dictionary as its optional second argument. It returns an