diff options
author | luxagraf <sng@luxagraf.net> | 2016-12-14 11:32:17 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-12-14 11:32:17 -0500 |
commit | c8fcfe09fd5768326ab2f7e361620ced0b07a553 (patch) | |
tree | f208b6f642c073133c52289a470d29c481e5dbc2 /app/photos | |
parent | c2b4eee457e3b527795b674716d3d09688192fcf (diff) |
cleaned up some files and added admin for LuxVideos
Diffstat (limited to 'app/photos')
-rw-r--r-- | app/photos/admin.py | 8 |
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'] |