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(