From 027c001d25b07d9bb18dfaa977469a4fda6f8b59 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Mon, 30 Jun 2025 17:06:44 +0300 Subject: [PATCH] Fixes: 1) Correct list filter fields to use `brand__name` and `category__name` for accurate filtering; Extra: None; --- core/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/admin.py b/core/admin.py index d0aa2247..736b242f 100644 --- a/core/admin.py +++ b/core/admin.py @@ -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",