Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix error
Mira Szewczyk08740d2209fc
diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.pyindex 484a55a3b2..d6b39ffcaf 100644--- a/saleor/graphql/product/types/products.py+++ b/saleor/graphql/product/types/products.py@@ -278,7 +278,7 @@ class ProductVariant(CountableDjangoObjectType, MetadataObjectType):@permission_required("stock.manage_stocks")def resolve_stock_for_country(root: models.ProductVariant, info):country = info.context.country- return stock_models.Stock.get_variant_stock_for_country(country, root)+ return stock_models.Stock.objects.get_variant_stock_for_country(country, root)@staticmethod@permission_required(ProductPermissions.MANAGE_PRODUCTS)