Skip to content

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

Align remaining resolvers

Jakub Draganekcd8d74a7f4d6
diff --git a/saleor/graphql/api.py b/saleor/graphql/api.py
index 05b51a05f9..0f3d2825c8 100644
--- a/saleor/graphql/api.py
+++ b/saleor/graphql/api.py
@@ -181,7 +181,7 @@ class ProductVariantType(DjangoObjectType):
model = ProductVariant
interfaces = (relay.Node, DjangoPkInterface)
- def resolve_stock_quantity(self, args, context, info):
+ def resolve_stock_quantity(self, info):
return self.get_stock_quantity()
diff --git a/saleor/graphql/utils.py b/saleor/graphql/utils.py
index 90f185e8d8..c80c600046 100644
--- a/saleor/graphql/utils.py
+++ b/saleor/graphql/utils.py
@@ -24,7 +24,7 @@ class DjangoPkInterface(graphene.Interface):
"""
pk = graphene.ID(description="Primary key")
- def resolve_pk(self, args, context, info):
+ def resolve_pk(self, info):
return self.pk