Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

PEP8 fix for some class-based views examples. Thanks to Peter Baumgar…

…tner for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14265 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c498d2f9b4d8bf5e8d6d91af8e23f59af3e34b69 1 parent 7083bc5
Chris Beaven authored October 18, 2010

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

  1. 10  docs/topics/class-based-views.txt
10  docs/topics/class-based-views.txt
@@ -213,7 +213,7 @@ attribute - here, we'll override it in the URLconf, since it's a simple change:
213 213
     urlpatterns = patterns('',
214 214
         (r'^publishers/$', ListView.as_view(
215 215
             model=Publisher,
216  
-            **context_object_name = "publisher_list",**
  216
+            **context_object_name="publisher_list",**
217 217
         )),
218 218
     )
219 219
 
@@ -287,12 +287,12 @@ publication date, with the most recent first::
287 287
 
288 288
     urlpatterns = patterns('',
289 289
         (r'^publishers/$', ListView.as_view(
290  
-            queryset = Publisher.objects.all(),
291  
-            context_object_name = "publisher_list",
  290
+            queryset=Publisher.objects.all(),
  291
+            context_object_name="publisher_list",
292 292
         )),
293 293
         (r'^books/$', ListView.as_view(
294  
-            queryset = Book.objects.order_by("-publication_date"),
295  
-            context_object_name = "book_list",
  294
+            queryset=Book.objects.order_by("-publication_date"),
  295
+            context_object_name="book_list",
296 296
         )),
297 297
     )
298 298
 

0 notes on commit c498d2f

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