diff options
Diffstat (limited to 'app/jrnl/admin.py')
-rw-r--r-- | app/jrnl/admin.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app/jrnl/admin.py b/app/jrnl/admin.py index 7f12087..94759c0 100644 --- a/app/jrnl/admin.py +++ b/app/jrnl/admin.py @@ -3,7 +3,7 @@ from django import forms from django.contrib.gis.admin import OSMGeoAdmin from utils.widgets import AdminImageWidget, LGEntryForm -from .models import Entry, HomepageCurrator +from .models import Entry, HomepageCurrator, Home from photos.forms import GalleryForm from photos.models import LuxImage @@ -96,3 +96,15 @@ class HomepageCurratorAdmin(admin.ModelAdmin): css = { "all": ("my_styles.css",) } + + +@admin.register(Home) +class HomeAdmin(admin.ModelAdmin): + form = GalleryForm + filter_horizontal = ('popular',) + + class Media: + js = ('image-loader.js', 'next-prev-links.js') + css = { + "all": ("my_styles.css",) + } |