Commit 5fadeb84 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #14494 -- Cleanup and typo in tutorial 4, introduced by class-based view...

Fixed #14494 -- Cleanup and typo in tutorial 4, introduced by class-based view changes. Thanks to Andrews Medina for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 3739f89b
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -235,15 +235,11 @@ Change it like so::
    from django.views.generic import DetailView, ListView
    from polls.models import Poll

    info_dict = {
        'queryset': Poll.objects.all(),
    }

    urlpatterns = patterns('',
        (r'^$',
            ListView.as_view(
                models=Poll,
                context_object_name='latest_poll_list'
                context_object_name='latest_poll_list',
                template_name='polls/index.html')),
        (r'^(?P<pk>\d+)/$',
            DetailView.as_view(