From 5fadeb848cea31415490074f608bbfa086b396b1 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 19 Oct 2010 04:03:07 +0000 Subject: [PATCH] Fixed #14494 -- Cleanup and typo in tutorial 4, introduced by class-based view changes. Thanks to Andrews Medina for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14278 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/intro/tutorial04.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index 9568546291..aac8b30cd1 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -235,15 +235,11 @@ Change it like so:: from django.views.generic import DetailView, ListView from polls.models import Poll - info_dict = { - 'queryset': Poll.objects.all(), - } - urlpatterns = patterns('', (r'^$', ListView.as_view( models=Poll, - context_object_name='latest_poll_list' + context_object_name='latest_poll_list', template_name='polls/index.html')), (r'^(?P\d+)/$', DetailView.as_view(