diff options
| author | Timo Graham <timograham@gmail.com> | 2010-12-27 23:27:18 +0000 |
|---|---|---|
| committer | Timo Graham <timograham@gmail.com> | 2010-12-27 23:27:18 +0000 |
| commit | 1fab808b1fd94394d96af54caa6957663e14f06d (patch) | |
| tree | 5a66c25071bf674570b08bbd3dd2ed325932d821 /docs/intro/tutorial04.txt | |
| parent | ddfe700563ebfa7464f05d373d25247c008dddf2 (diff) | |
Fixed #6550 - Changed generic view portion of the tutorial so it's equivalent 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
Diffstat (limited to 'docs/intro/tutorial04.txt')
| -rw-r--r-- | docs/intro/tutorial04.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index 606da5669b..dbb19c9d10 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<pk>\d+)/$', |
