diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index 606da5669b3..dbb19c9d10d 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -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\d+)/$',