Skip to content

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

Apply changes after review

Maciej Korycinski7ab93b3b4a0f
diff --git a/saleor/graphql/core/fields.py b/saleor/graphql/core/fields.py
index 4d9ca80fa8..0c5e776d1b 100644
--- a/saleor/graphql/core/fields.py
+++ b/saleor/graphql/core/fields.py
@@ -135,12 +135,7 @@ class FilterInputConnectionField(DjangoConnectionField):
def get_resolver(self, parent_resolver):
return partial(
- self.connection_resolver,
- parent_resolver,
- self.type,
- self.get_manager(),
- self.max_limit,
- self.enforce_first_or_last,
+ super().get_resolver(parent_resolver),
self.filterset_class,
self.filter_field_name
)
diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.py
index 759ec7224f..90b3cac737 100644
--- a/saleor/graphql/product/types/products.py
+++ b/saleor/graphql/product/types/products.py
@@ -31,10 +31,10 @@ from .digital_contents import DigitalContent
def prefetch_products(info, *_args, **_kwargs):
"""Prefetch products visible to the current user.
-
- Can be used with models that have the `products` relationship. Queryset of
- products being prefetched is filtered based on permissions of the viewing
- user, to restrict access to unpublished products to non-staff users.
+ Can be used with models that have the `products` relationship. The queryset
+ of products being prefetched is filtered based on permissions of the
+ requesting user, to restrict access to unpublished products from non-staff
+ users.
"""
user = info.context.user
qs = models.Product.objects.visible_to_user(user)