From c8fcfe09fd5768326ab2f7e361620ced0b07a553 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 14 Dec 2016 11:32:17 -0500 Subject: cleaned up some files and added admin for LuxVideos --- app/photos/admin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app') 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'] -- cgit v1.2.3-70-g09d2