summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial04.txt
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2010-10-26 18:44:11 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2010-10-26 18:44:11 +0000
commit3761f3b166fca3313069849d12544717ebaddda5 (patch)
tree3eaf95618de964e68bd5157151746e44d60e62fa /docs/intro/tutorial04.txt
parent851f42ba277eec8081b8493d59a1506b6ce15c77 (diff)
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
Diffstat (limited to 'docs/intro/tutorial04.txt')
-rw-r--r--docs/intro/tutorial04.txt6
1 files 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<pk>\d+)/$',
DetailView.as_view(
- models=Poll,
+ model=Poll,
template_name='polls/detail.html')),
url(r'^(?P<pk>\d+)/results/$',
DetailView.as_view(
- models=Poll,
+ model=Poll,
template_name='polls/results.html'),
name='poll_results'),
(r'^(?P<poll_id>\d+)/vote/$', 'polls.views.vote'),