From a670fccf79217405e34155319e03d1ed1e2e1390 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 23 Jan 2007 04:31:02 +0000 Subject: newforms-admin: Merged to [4399] git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4400 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/tutorial03.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs/tutorial03.txt') 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 -- cgit v1.3