first
This commit is contained in:
commit
89a5d70512
284 files changed
+8364
No files matched your search
@@ -0,0 +1,40 @@
|
||||
from django.contrib import admin
|
||||
from apps.shop.models import (
|
||||
ProductCategory as ProductCategoryModel,
|
||||
Product as ProductModel,
|
||||
Order as OrderModel,
|
||||
OrderItem as OrderItemModel,
|
||||
Cart as CartModel,
|
||||
ProductType as ProductTypeModel
|
||||
)
|
||||
# Register your models here.
|
||||
|
||||
|
||||
@admin.register(ProductTypeModel)
|
||||
class ProductTypeAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(ProductCategoryModel)
|
||||
class ProductCategoryAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(ProductModel)
|
||||
class ProductAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(OrderModel)
|
||||
class OrderAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(OrderItemModel)
|
||||
class OrderItemAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(CartModel)
|
||||
class CartAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
Reference in new issue
Block a user