Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #14494 -- Cleanup and typo in tutorial 4, introduced by class-b…

…ased 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
  • Loading branch information...
commit 5fadeb848cea31415490074f608bbfa086b396b1 1 parent 3739f89
Russell Keith-Magee authored October 19, 2010

Showing 1 changed file with 1 addition and 5 deletions. Show diff stats Hide diff stats

  1. 6  docs/intro/tutorial04.txt
6  docs/intro/tutorial04.txt
@@ -235,15 +235,11 @@ Change it like so::
235 235
     from django.views.generic import DetailView, ListView
236 236
     from polls.models import Poll
237 237
 
238  
-    info_dict = {
239  
-        'queryset': Poll.objects.all(),
240  
-    }
241  
-
242 238
     urlpatterns = patterns('',
243 239
         (r'^$',
244 240
             ListView.as_view(
245 241
                 models=Poll,
246  
-                context_object_name='latest_poll_list'
  242
+                context_object_name='latest_poll_list',
247 243
                 template_name='polls/index.html')),
248 244
         (r'^(?P<pk>\d+)/$',
249 245
             DetailView.as_view(

0 notes on commit 5fadeb8

Please sign in to comment.
Something went wrong with that request. Please try again.