summaryrefslogtreecommitdiff
path: root/app/taxonomy/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/taxonomy/admin.py')
-rw-r--r--app/taxonomy/admin.py28
1 files changed, 27 insertions, 1 deletions
diff --git a/app/taxonomy/admin.py b/app/taxonomy/admin.py
index cc48fac..783584e 100644
--- a/app/taxonomy/admin.py
+++ b/app/taxonomy/admin.py
@@ -1,5 +1,5 @@
from django.contrib import admin
-from .models import Category
+from .models import Category, LuxTag
@admin.register(Category)
@@ -26,3 +26,29 @@ class CategoryAdmin(admin.ModelAdmin):
class Media:
js = ('image-loader.js', 'next-prev-links.js')
+
+
+@admin.register(LuxTag)
+class LuxTagAdmin(admin.ModelAdmin):
+ list_display = (
+ 'name',
+ 'color_rgb',
+ )
+ fieldsets = (
+ ('Item', {
+ 'fields': (
+ 'name',
+ 'color_rgb',
+ 'slug',
+ ),
+ 'classes': (
+ 'show',
+ 'extrapretty',
+ 'wide'
+ )
+ }
+ ),
+ )
+
+ class Media:
+ js = ('image-loader.js', 'next-prev-links.js')