forked from wiktor/spejstore-new
Remove legacy labels from django admin
This commit is contained in:
parent
5012a10298
commit
a6705a956f
|
@ -35,15 +35,11 @@ class ItemImageInline(ModelAdminMixin, admin.TabularInline):
|
||||||
extra = 1
|
extra = 1
|
||||||
|
|
||||||
|
|
||||||
class LabelInline(ModelAdminMixin, admin.TabularInline):
|
|
||||||
model = Label
|
|
||||||
|
|
||||||
|
|
||||||
class ItemAdmin(ModelAdminMixin, admin.ModelAdmin):
|
class ItemAdmin(ModelAdminMixin, admin.ModelAdmin):
|
||||||
list_display = ("_name",)
|
list_display = ("_name",)
|
||||||
list_filter = ("categories",)
|
list_filter = ("categories",)
|
||||||
form = ItemForm
|
form = ItemForm
|
||||||
inlines = [ItemImageInline, LabelInline]
|
inlines = [ItemImageInline]
|
||||||
save_on_top = True
|
save_on_top = True
|
||||||
autocomplete_fields = ["parent"]
|
autocomplete_fields = ["parent"]
|
||||||
search_fields = ["name"]
|
search_fields = ["name"]
|
||||||
|
|
Loading…
Reference in New Issue