change
This commit is contained in:
@@ -10,7 +10,7 @@ class SubProductInline(TabularInline):
|
||||
|
||||
@admin.register(ProductsModel)
|
||||
class ProductsAdmin(ModelAdmin):
|
||||
list_display = ("id", "name", "price", "image", "subcategory", "created_at")
|
||||
list_display = ("id", "name", "price", "order", "subcategory", "created_at")
|
||||
list_filter = ("subcategory__category__filial", "subcategory__category", "subcategory", "created_at")
|
||||
search_fields = ("name", "subcategory__name", "subcategory__category__name")
|
||||
list_select_related = ("subcategory", "subcategory__category", "subcategory__category__filial")
|
||||
|
||||
@@ -5,7 +5,7 @@ from django.contrib import admin
|
||||
|
||||
@admin.register(TypeModel)
|
||||
class TypeAdmin(ModelAdmin):
|
||||
list_display = ("id", "name", "get_filials")
|
||||
list_display = ("id", "name", "percent", "get_filials")
|
||||
filter_horizontal = ("filials",)
|
||||
|
||||
def get_filials(self, obj):
|
||||
|
||||
Reference in New Issue
Block a user