Fixes: 1) Correct list filter fields to use brand__name and category__name for accurate filtering;

Extra: None;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-06-30 17:06:44 +03:00
parent 9591494fee
commit 027c001d25

View file

@ -240,8 +240,8 @@ class ProductAdmin(FieldsetsMixin, BasicModelAdmin):
list_filter = (
"is_active",
"is_digital",
("brand", DALFRelatedFieldAjax),
("category", DALFRelatedFieldAjax),
("brand__name", DALFRelatedFieldAjax),
("category__name", DALFRelatedFieldAjax),
("tags", DALFRelatedOnlyField),
("stocks__vendor", DALFRelatedOnlyField),
"created",