ad modelga location yuborish qoshilgit
This commit is contained in:
@@ -11,6 +11,7 @@ class SubProductInline(TabularInline):
|
||||
@admin.register(ProductsModel)
|
||||
class ProductsAdmin(ModelAdmin):
|
||||
list_display = ("id", "name", "price", "order", "subcategory", "created_at")
|
||||
list_editable = ("order",)
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user