Skip to content

Commit

Permalink
Fixed #6550 - Changed generic view portion of the tutorial so it's eq…
Browse files Browse the repository at this point in the history
…uivalent to "the hard way" results. Thanks Alexandre Dupas for the suggestion.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
timo committed Dec 27, 2010
1 parent 6f8ec9b commit b72433a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/intro/tutorial04.txt
Expand Up @@ -238,7 +238,7 @@ Change it like so::
urlpatterns = patterns('',
(r'^$',
ListView.as_view(
model=Poll,
queryset=Poll.objects.order_by('-pub_date')[:5],
context_object_name='latest_poll_list',
template_name='polls/index.html')),
(r'^(?P<pk>\d+)/$',
Expand Down

0 comments on commit b72433a

Please sign in to comment.