from django.contrib import admin
from category_management.models import Category, Subcategory


class CategoryAdmin(admin.ModelAdmin):
    list_display = ['name', 'type']
    list_search = ['name']


admin.site.register(Category, CategoryAdmin)


class SubCategoryAdmin(admin.ModelAdmin):
    list_display = ['name', 'category']
    list_search = ['name', 'category']


admin.site.register(Subcategory, SubCategoryAdmin)

9faff04ca5312023baafd3d946305fa36b62a028
<mask token>


class CategoryAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>


<mask token>


class SubCategoryAdmin(admin.ModelAdmin):
    list_display = ['name', 'category']
    list_search = ['name', 'category']


<mask token>

<mask token>


class CategoryAdmin(admin.ModelAdmin):
    list_display = ['name', 'type']
    list_search = ['name']


<mask token>


class SubCategoryAdmin(admin.ModelAdmin):
    list_display = ['name', 'category']
    list_search = ['name', 'category']


<mask token>

<mask token>


class CategoryAdmin(admin.ModelAdmin):
    list_display = ['name', 'type']
    list_search = ['name']


admin.site.register(Category, CategoryAdmin)


class SubCategoryAdmin(admin.ModelAdmin):
    list_display = ['name', 'category']
    list_search = ['name', 'category']


admin.site.register(Subcategory, SubCategoryAdmin)

from django.contrib import admin
from category_management.models import Category, Subcategory


class CategoryAdmin(admin.ModelAdmin):
    list_display = ['name', 'type']
    list_search = ['name']


admin.site.register(Category, CategoryAdmin)


class SubCategoryAdmin(admin.ModelAdmin):
    list_display = ['name', 'category']
    list_search = ['name', 'category']


admin.site.register(Subcategory, SubCategoryAdmin)
