diff options
Diffstat (limited to 'app/blog/admin.py')
-rw-r--r-- | app/blog/admin.py | 5 |
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) - |