diff options
author | luxagraf <sng@luxagraf.net> | 2019-09-14 08:36:11 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-09-14 08:36:11 -0400 |
commit | e4dca5792a9ef843ae5a1f35a8166551747f33f2 (patch) | |
tree | 6fe206a45ca430544c6e6ea6898df0e7ee555e22 /app/taxonomy | |
parent | aca44010b0d34cc83491be7ef3a0de147598cc0b (diff) |
Worked on guides, moved some templates to app/dir
Diffstat (limited to 'app/taxonomy')
-rw-r--r-- | app/taxonomy/admin.py | 28 |
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') |