Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected some typos in the tutorial, thanks to Brandon Height for th…

…e report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3761f3b166fca3313069849d12544717ebaddda5 1 parent 851f42b
Alex Gaynor alex authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/intro/tutorial04.txt
6 docs/intro/tutorial04.txt
View
@@ -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'),
Please sign in to comment.
Something went wrong with that request. Please try again.