Closed YordanPetrovDS closed 1 month ago
MPTT admin does not compatible with django-unfold. Could you please help me to fix this? code:
from mptt.admin import MPTTModelAdmin from unfold.admin import ModelAdmin, TabularInline @admin.register(ProductCategory) class ProductCategoryAdmin(MPTTModelAdmin, ModelAdmin): list_display = ("title", "parent", "display_attributes", "display_tax_groups") search_fields = ("title",) mptt_level_indent = 20 list_filter = ("parent",) inlines = [ProductCategoryAttributesInline, ProductCategoryTaxGroupsInline]
result:
Hi, this is duplicate of #366 so I'm closing this ticket.
MPTT admin does not compatible with django-unfold. Could you please help me to fix this? code:
result: