db va type togirlandi
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
from .category import * # noqa
|
||||
from .products import * # noqa
|
||||
from .type import * # noqa
|
||||
|
||||
8
core/apps/api/admin/type.py
Normal file
8
core/apps/api/admin/type.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from core.apps.api.models import TypeModel
|
||||
from unfold.admin import ModelAdmin
|
||||
from django.contrib import admin
|
||||
|
||||
|
||||
@admin.register(TypeModel)
|
||||
class TypeAdmin(ModelAdmin):
|
||||
list_display = ("id", "__str__",)
|
||||
Reference in New Issue
Block a user