Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Allow to use custom name of filters

Maciej Korycinskie7459f9cd212
diff --git a/saleor/graphql/core/fields.py b/saleor/graphql/core/fields.py
index cc208ff7fc..a347e0c724 100644
--- a/saleor/graphql/core/fields.py
+++ b/saleor/graphql/core/fields.py
@@ -71,8 +71,8 @@ class PrefetchingConnectionField(DjangoConnectionField):
class FilterInputConnectionField(DjangoConnectionField):
- def __init__(self, *args, **kwargs):
- self.filters_name = kwargs.get('filters_name', 'filters')
+ def __init__(self, *args, **kwargs):
+ self.filters_name = kwargs.pop('filters_name', 'filters')
self.filters_obj = kwargs.get(self.filters_name)
self.filterset_class = None
if self.filters_obj: