mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
ddfe700563
commit
1fab808b1f
|
@ -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+)/$',
|
||||
|
|
Loading…
Reference in New Issue