Ticket #14494: tutorial04.patch

File tutorial04.patch, 718 bytes (added by Andrews Medina, 14 years ago)
  • docs/intro/tutorial04.txt

     
    235235    from django.views.generic import DetailView, ListView
    236236    from polls.models import Poll
    237237
    238     info_dict = {
    239         'queryset': Poll.objects.all(),
    240     }
    241 
    242238    urlpatterns = patterns('',
    243239        (r'^$',
    244240            ListView.as_view(
    245241                models=Poll,
    246                 context_object_name='latest_poll_list'
     242                context_object_name='latest_poll_list',
    247243                template_name='polls/index.html')),
    248244        (r'^(?P<pk>\d+)/$',
    249245            DetailView.as_view(
Back to Top