Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed PEP8 fallacies.

  • Loading branch information...
commit 64d78d14fe56f994df11ed4fced14ede5c57a6fa 1 parent f9367b3
Jannis Leidel authored July 25, 2012

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

  1. 26  django_website/aggregator/admin.py
26  django_website/aggregator/admin.py
@@ -19,23 +19,23 @@ def mark_denied(modeladmin, request, queryset):
19 19
 
20 20
 
21 21
 admin.site.register(Feed,
22  
-    list_display  = ["title", "feed_type", "public_url", "approval_status"],
23  
-    list_filter   = ["feed_type", "is_defunct", "approval_status"],
24  
-    ordering      = ["title"],
25  
-    search_fields = ["title", "public_url"],
26  
-    raw_id_fields = ['owner'],
27  
-    list_editable = ["approval_status"],
28  
-    list_per_page = 500,
29  
-    actions = [mark_approved, mark_denied],
  22
+    list_display=["title", "feed_type", "public_url", "approval_status"],
  23
+    list_filter=["feed_type", "is_defunct", "approval_status"],
  24
+    ordering=["title"],
  25
+    search_fields=["title", "public_url"],
  26
+    raw_id_fields=['owner'],
  27
+    list_editable=["approval_status"],
  28
+    list_per_page=500,
  29
+    actions=[mark_approved, mark_denied],
30 30
 )
31 31
 
32 32
 admin.site.register(FeedItem,
33  
-    list_display   = ['title', 'feed', 'date_modified'],
34  
-    list_filter    = ['feed'],
35  
-    search_fields  = ['feed__title', 'feed__public_url', 'title'],
36  
-    date_heirarchy = ['date_modified'],
  33
+    list_display=['title', 'feed', 'date_modified'],
  34
+    list_filter=['feed'],
  35
+    search_fields=['feed__title', 'feed__public_url', 'title'],
  36
+    date_heirarchy=['date_modified'],
37 37
 )
38 38
 
39 39
 admin.site.register(FeedType,
40  
-    prepopulated_fields = {'slug': ('name',)},
  40
+    prepopulated_fields={'slug': ('name',)},
41 41
 )

0 notes on commit 64d78d1

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