Features: 1) Add "is_updatable" to list_filter and additional_fields in admin configuration;
Fixes: None; Extra: None;
This commit is contained in:
parent
e852d6adf2
commit
c3b4becc76
1 changed files with 4 additions and 0 deletions
|
|
@ -466,6 +466,7 @@ class ProductAdmin(
|
||||||
list_filter = (
|
list_filter = (
|
||||||
"is_active",
|
"is_active",
|
||||||
"is_digital",
|
"is_digital",
|
||||||
|
"is_updatable",
|
||||||
"stocks__vendor",
|
"stocks__vendor",
|
||||||
"tags__name",
|
"tags__name",
|
||||||
"created",
|
"created",
|
||||||
|
|
@ -513,6 +514,9 @@ class ProductAdmin(
|
||||||
"brand",
|
"brand",
|
||||||
"tags",
|
"tags",
|
||||||
]
|
]
|
||||||
|
additional_fields = [
|
||||||
|
"is_updatable",
|
||||||
|
]
|
||||||
|
|
||||||
def get_queryset(self, request):
|
def get_queryset(self, request):
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue