summaryrefslogtreecommitdiff
path: root/app/taxonomy/admin.py
blob: cc48fac32d78799fd2c791204a20019d87b843a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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')