We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 851f42b commit 3761f3bCopy full SHA for 3761f3b
docs/intro/tutorial04.txt
@@ -238,16 +238,16 @@ Change it like so::
238
urlpatterns = patterns('',
239
(r'^$',
240
ListView.as_view(
241
- models=Poll,
+ model=Poll,
242
context_object_name='latest_poll_list',
243
template_name='polls/index.html')),
244
(r'^(?P<pk>\d+)/$',
245
DetailView.as_view(
246
247
template_name='polls/detail.html')),
248
url(r'^(?P<pk>\d+)/results/$',
249
250
251
template_name='polls/results.html'),
252
name='poll_results'),
253
(r'^(?P<poll_id>\d+)/vote/$', 'polls.views.vote'),
0 commit comments