diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index 95d1945097..606da5669b 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -238,16 +238,16 @@ Change it like so:: urlpatterns = patterns('', (r'^$', ListView.as_view( - models=Poll, + model=Poll, context_object_name='latest_poll_list', template_name='polls/index.html')), (r'^(?P\d+)/$', DetailView.as_view( - models=Poll, + model=Poll, template_name='polls/detail.html')), url(r'^(?P\d+)/results/$', DetailView.as_view( - models=Poll, + model=Poll, template_name='polls/results.html'), name='poll_results'), (r'^(?P\d+)/vote/$', 'polls.views.vote'),