summaryrefslogtreecommitdiff
path: root/app/blog/admin.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-11-04 21:40:38 -0500
committerluxagraf <sng@luxagraf.net>2015-11-04 21:40:38 -0500
commit24b760797fd26e80c1738c614408b02b50284d4d (patch)
tree3f847d1d9d049f8c456cc31c2ad5980101aecb11 /app/blog/admin.py
parent535038e99462cf3738e48871ff69b0192ec62572 (diff)
cleaned up the code in blog and refactored to PEP 8 and class based views
Diffstat (limited to 'app/blog/admin.py')
-rw-r--r--app/blog/admin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/blog/admin.py b/app/blog/admin.py
index 34c858d..15a7512 100644
--- a/app/blog/admin.py
+++ b/app/blog/admin.py
@@ -1,7 +1,8 @@
from django.contrib import admin
from django import forms
-from blog.widgets import AdminImageWidget
from django.contrib.gis.admin import OSMGeoAdmin
+
+from .widgets import AdminImageWidget
from .models import Entry, EntryAside, PostImage, HomepageCurrator
@@ -79,6 +80,7 @@ class EntryAdmin(OSMGeoAdmin):
class PostImageAdmin(admin.ModelAdmin):
list_display = ('title', 'post_image')
+
class HomepageCurratorAdmin(admin.ModelAdmin):
filter_horizontal = ('entry_list',)
pass
@@ -88,4 +90,3 @@ admin.site.register(PostImage, PostImageAdmin)
admin.site.register(EntryAside, EntryAsideAdmin)
admin.site.register(Entry, EntryAdmin)
admin.site.register(HomepageCurrator, HomepageCurratorAdmin)
-