Attributes model added.
This commit is contained in:
28
core/apps/api/admin/attributes.py
Normal file
28
core/apps/api/admin/attributes.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from django.contrib import admin
|
||||
from unfold.admin import ModelAdmin
|
||||
|
||||
from core.apps.api.models import ColorModel, ProductlikeModel, SizeModel
|
||||
|
||||
|
||||
@admin.register(SizeModel)
|
||||
class SizeAdmin(ModelAdmin):
|
||||
list_display = (
|
||||
"id",
|
||||
"__str__",
|
||||
)
|
||||
|
||||
|
||||
@admin.register(ColorModel)
|
||||
class ColorAdmin(ModelAdmin):
|
||||
list_display = (
|
||||
"id",
|
||||
"__str__",
|
||||
)
|
||||
|
||||
|
||||
@admin.register(ProductlikeModel)
|
||||
class ProductlikeAdmin(ModelAdmin):
|
||||
list_display = (
|
||||
"id",
|
||||
"__str__",
|
||||
)
|
||||
Reference in New Issue
Block a user