40 lines
729 B
Python
40 lines
729 B
Python
from django.contrib import admin
|
|
from unfold.admin import ModelAdmin
|
|
|
|
from core.apps.api.models import ColorModel, SizeModel
|
|
from core.apps.api.models import AdTopPlanModel
|
|
from core.apps.api.models import TagsModel
|
|
|
|
|
|
@admin.register(ColorModel)
|
|
class ColorAdmin(ModelAdmin):
|
|
list_display = (
|
|
"id",
|
|
"__str__",
|
|
)
|
|
|
|
|
|
@admin.register(SizeModel)
|
|
class SizeAdmin(ModelAdmin):
|
|
list_display = (
|
|
"id",
|
|
"__str__",
|
|
)
|
|
|
|
|
|
@admin.register(AdTopPlanModel)
|
|
class AdTopPlanAdmin(ModelAdmin):
|
|
list_display = (
|
|
"id",
|
|
"__str__",
|
|
)
|
|
|
|
|
|
@admin.register(TagsModel)
|
|
class TagsAdmin(ModelAdmin):
|
|
search_fields = ["name"]
|
|
list_display = (
|
|
"id",
|
|
"__str__",
|
|
)
|