From a6705a956ff50bbd69dd9bf21a8c0b556f14c5ee Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Mon, 17 Jul 2023 23:03:28 +0200 Subject: [PATCH] Remove legacy labels from django admin --- storage/admin.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/storage/admin.py b/storage/admin.py index 8903dab..3909790 100644 --- a/storage/admin.py +++ b/storage/admin.py @@ -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"]