Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use distinct to avoid duplicated filtering results
Marcin Gębala47499fce5dfe
diff --git a/saleor/graphql/utils.py b/saleor/graphql/utils.pyindex 0453720dbf..a2981e082d 100644--- a/saleor/graphql/utils.py+++ b/saleor/graphql/utils.py@@ -75,7 +75,7 @@ def filter_by_query_param(queryset, query, search_fields):query_objects = Q()for q in query_by:query_objects |= Q(**{q: query_by[q]})- return queryset.filter(query_objects)+ return queryset.filter(query_objects).distinct()return queryset