first commit
This commit is contained in:
commit
3e4574dcdd
163 files changed
+3559
No files matched your search
@@ -0,0 +1,14 @@
|
||||
from django.contrib import admin
|
||||
from .models import Product as ProductModel, ProductCategory as ProductCategoryModel
|
||||
# Register your models here.
|
||||
|
||||
|
||||
@admin.register(ProductCategoryModel)
|
||||
class ProductCategoryAdmin(admin.ModelAdmin):
|
||||
list_filter = ['name', 'is_enable']
|
||||
|
||||
|
||||
@admin.register(ProductModel)
|
||||
class ProductAdmin(admin.ModelAdmin):
|
||||
list_filter = ['category__name', 'is_enable']
|
||||
search_fields = ['name',]
|
||||
Reference in new issue
Block a user