feat: added brand model
This commit is contained in:
+19
-2
@@ -1,5 +1,15 @@
|
||||
from django.contrib import admin
|
||||
from shop.models import Product, ProductPrice, OrderLine, Order, Tax, Customer, Provider, Tag, ProductBatch
|
||||
from shop.models import (
|
||||
Product,
|
||||
ProductPrice,
|
||||
OrderLine,
|
||||
Order,
|
||||
Tax,
|
||||
Customer,
|
||||
Provider,
|
||||
Tag,
|
||||
ProductBatch, Brand,
|
||||
)
|
||||
from unfold.admin import ModelAdmin
|
||||
|
||||
|
||||
@@ -76,6 +86,14 @@ class TagAdmin(ModelAdmin):
|
||||
)
|
||||
|
||||
|
||||
@admin.register(Brand)
|
||||
class BrandAdmin(ModelAdmin):
|
||||
list_display = (
|
||||
"id",
|
||||
"name",
|
||||
)
|
||||
|
||||
|
||||
@admin.register(ProductBatch)
|
||||
class ProductBatchAdmin(ModelAdmin):
|
||||
list_display = (
|
||||
@@ -84,4 +102,3 @@ class ProductBatchAdmin(ModelAdmin):
|
||||
"quantity",
|
||||
"provider",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user