summaryrefslogtreecommitdiff
path: root/app/photos
diff options
context:
space:
mode:
Diffstat (limited to 'app/photos')
-rw-r--r--app/photos/admin.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/photos/admin.py b/app/photos/admin.py
index f0eb1c7..0e6c10d 100644
--- a/app/photos/admin.py
+++ b/app/photos/admin.py
@@ -3,7 +3,7 @@ from django import forms
from django.contrib.gis.admin import OSMGeoAdmin
from django.conf.urls import url
from django.utils.translation import ungettext, ugettext_lazy as _
-from photos.models import Photo, PhotoGallery, LuxImage, LuxGallery, LuxImageSize
+from photos.models import Photo, PhotoGallery, LuxImage, LuxGallery, LuxImageSize, LuxVideo
from django.shortcuts import render
from django.contrib.admin import helpers
from django.http import HttpResponseRedirect
@@ -20,8 +20,12 @@ class LuxImageSizeAdmin(OSMGeoAdmin):
admin.site.register(LuxImageSize, LuxImageSizeAdmin)
-class LuxImageAdmin(OSMGeoAdmin):
+@admin.register(LuxVideo)
+class LuxVideoAdmin(OSMGeoAdmin):
+ pass
+
+class LuxImageAdmin(OSMGeoAdmin):
list_display = ('pk', 'admin_thumbnail', 'pub_date', 'location')
list_filter = ('pub_date', 'location')
search_fields = ['title', 'caption']