From e4dca5792a9ef843ae5a1f35a8166551747f33f2 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 14 Sep 2019 08:36:11 -0400 Subject: Worked on guides, moved some templates to app/dir --- app/taxonomy/admin.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app/taxonomy/admin.py (limited to 'app/taxonomy') 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') -- cgit v1.2.3-70-g09d2