From 3761f3b166fca3313069849d12544717ebaddda5 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 26 Oct 2010 18:44:11 +0000 Subject: [PATCH] Corrected some typos in the tutorial, thanks to Brandon Height for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14358 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/intro/tutorial04.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'),