Skip to content

Commit 3761f3b

Browse files
committed
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
1 parent 851f42b commit 3761f3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/intro/tutorial04.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,16 @@ Change it like so::
238238
urlpatterns = patterns('',
239239
(r'^$',
240240
ListView.as_view(
241-
models=Poll,
241+
model=Poll,
242242
context_object_name='latest_poll_list',
243243
template_name='polls/index.html')),
244244
(r'^(?P<pk>\d+)/$',
245245
DetailView.as_view(
246-
models=Poll,
246+
model=Poll,
247247
template_name='polls/detail.html')),
248248
url(r'^(?P<pk>\d+)/results/$',
249249
DetailView.as_view(
250-
models=Poll,
250+
model=Poll,
251251
template_name='polls/results.html'),
252252
name='poll_results'),
253253
(r'^(?P<poll_id>\d+)/vote/$', 'polls.views.vote'),

0 commit comments

Comments
 (0)