blob: 5155b6f828eba57b52ec235a1a255b9a327a95b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from django.contrib import admin
from taggit.models import Tag, TaggedItem
class TaggedItemInline(admin.StackedInline):
model = TaggedItem
class TagAdmin(admin.ModelAdmin):
list_display = ["name"]
inlines = [
TaggedItemInline
]
admin.site.register(Tag, TagAdmin)
|