Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix weird dict unpacking
Patryk Zawadzki8ee4bf327a88
diff --git a/saleor/product/filters.py b/saleor/product/filters.pyindex d7134810af..cbb063fcde 100644--- a/saleor/product/filters.py+++ b/saleor/product/filters.py@@ -92,11 +92,10 @@ class ProductCategoryFilter(ProductFilter):super().__init__(*args, **kwargs)def _get_product_attributes_lookup(self):- return Q(**{'product_types__products__category': self.category})+ return Q(product_types__products__category=self.category)def _get_variant_attributes_lookup(self):- return Q(**{'product_variant_types__products__category':- self.category})+ return Q(product_variant_types__products__category=self.category)class ProductCollectionFilter(ProductFilter):@@ -105,8 +104,7 @@ class ProductCollectionFilter(ProductFilter):super().__init__(*args, **kwargs)def _get_product_attributes_lookup(self):- return Q(**{'product_types__products__collections': self.collection})+ return Q(product_types__products__collections=self.collection)def _get_variant_attributes_lookup(self):- return Q(- **{'product_variant_types__products__collections': self.collection})+ return Q(product_variant_types__products__collections=self.collection)