Fixes: 1) Correct list filter fields to use brand__name and category__name for accurate filtering;
Extra: None;
This commit is contained in:
parent
9591494fee
commit
027c001d25
1 changed files with 2 additions and 2 deletions
|
|
@ -240,8 +240,8 @@ class ProductAdmin(FieldsetsMixin, BasicModelAdmin):
|
||||||
list_filter = (
|
list_filter = (
|
||||||
"is_active",
|
"is_active",
|
||||||
"is_digital",
|
"is_digital",
|
||||||
("brand", DALFRelatedFieldAjax),
|
("brand__name", DALFRelatedFieldAjax),
|
||||||
("category", DALFRelatedFieldAjax),
|
("category__name", DALFRelatedFieldAjax),
|
||||||
("tags", DALFRelatedOnlyField),
|
("tags", DALFRelatedOnlyField),
|
||||||
("stocks__vendor", DALFRelatedOnlyField),
|
("stocks__vendor", DALFRelatedOnlyField),
|
||||||
"created",
|
"created",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue