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
This commit is contained in:
Alex Gaynor 2010-10-26 18:44:11 +00:00
parent 851f42ba27
commit 3761f3b166
1 changed files with 3 additions and 3 deletions

View File

@ -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'),