from django.contrib import admin from .models import Category, LuxTag @admin.register(Category) class CategoryAdmin(admin.ModelAdmin): list_display = ( 'name', 'color_rgb', ) fieldsets = ( ('Item', { 'fields': ( 'name', 'color_rgb', 'slug', "pluralized_name", "description", "intro_markdown", ), 'classes': ( 'show', 'extrapretty', 'wide' ) } ), ) 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')