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:
parent
851f42ba27
commit
3761f3b166
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue