1
0
Fork 0

Remove legacy labels from django admin

This commit is contained in:
Dariusz Niemczyk 2023-07-17 23:03:28 +02:00
parent 5012a10298
commit a6705a956f
No known key found for this signature in database
1 changed files with 1 additions and 5 deletions

View File

@ -35,15 +35,11 @@ class ItemImageInline(ModelAdminMixin, admin.TabularInline):
extra = 1
class LabelInline(ModelAdminMixin, admin.TabularInline):
model = Label
class ItemAdmin(ModelAdminMixin, admin.ModelAdmin):
list_display = ("_name",)
list_filter = ("categories",)
form = ItemForm
inlines = [ItemImageInline, LabelInline]
inlines = [ItemImageInline]
save_on_top = True
autocomplete_fields = ["parent"]
search_fields = ["name"]