category update
This commit is contained in:
@@ -260,10 +260,10 @@ class MainCategoryModelAdmin(ModelAdmin, ImportExportModelAdmin):
|
||||
|
||||
@admin.register(SubCategoryModel)
|
||||
class SubCategoryModelAdmin(ModelAdmin, ImportExportModelAdmin):
|
||||
list_display = ['name', 'parent', 'show']
|
||||
list_display = ['name', 'parent']
|
||||
|
||||
search_fields = ['name', 'slug']
|
||||
list_filter = ['parent', 'show', ]
|
||||
list_filter = ['parent', ]
|
||||
|
||||
import_form_class = ImportForm
|
||||
export_form_class = ExportForm
|
||||
|
||||
Reference in New Issue
Block a user