summaryrefslogtreecommitdiff
path: root/app/jrnl/admin.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-09-02 10:15:59 -0600
committerluxagraf <sng@luxagraf.net>2018-09-02 10:15:59 -0600
commit0e15bfaaa7b2ded3af49911f0c3cbeaec55a653c (patch)
tree84fa8316c1be16fe2c8cd942c153f75665311cae /app/jrnl/admin.py
parentbbe0feb98ae3367ce730bdf7c62aef653d89f1f0 (diff)
changed Homepage Currator model
Diffstat (limited to 'app/jrnl/admin.py')
-rw-r--r--app/jrnl/admin.py14
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",)
+ }