1 from django.contrib import admin
5 class AttributeInline(admin.TabularInline):
6 model = models.Attribute
9 @admin.register(models.Tag)
10 class TagAdmin(admin.ModelAdmin):
11 inlines = [AttributeInline]
12 list_display = ['name', 'type']
13 list_filter = ['type']
26 'editor_css', 'editor_css_after',
33 @admin.register(models.TagUsage)
34 class TagUsageAdmin(admin.ModelAdmin):
38 @admin.register(models.AttributeUsage)
39 class AttributeUsageAdmin(admin.ModelAdmin):
40 list_filter = ['attribute__tag', 'attribute']
41 list_display = ['tag_usage', 'attribute', 'value']