summaryrefslogtreecommitdiff
path: root/app/taxonomy
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-09-14 08:36:11 -0400
committerluxagraf <sng@luxagraf.net>2019-09-14 08:36:11 -0400
commite4dca5792a9ef843ae5a1f35a8166551747f33f2 (patch)
tree6fe206a45ca430544c6e6ea6898df0e7ee555e22 /app/taxonomy
parentaca44010b0d34cc83491be7ef3a0de147598cc0b (diff)
Worked on guides, moved some templates to app/dir
Diffstat (limited to 'app/taxonomy')
-rw-r--r--app/taxonomy/admin.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/taxonomy/admin.py b/app/taxonomy/admin.py
new file mode 100644
index 0000000..cc48fac
--- /dev/null
+++ b/app/taxonomy/admin.py
@@ -0,0 +1,28 @@
+from django.contrib import admin
+from .models import Category
+
+
+@admin.register(Category)
+class CategoryAdmin(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')