Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Rename shipping_methods to shipping_zones
Pacu2b3fc56112160
diff --git a/saleor/graphql/api.py b/saleor/graphql/api.pyindex 5016dc036e..06a4229d22 100644--- a/saleor/graphql/api.py+++ b/saleor/graphql/api.py@@ -56,7 +56,7 @@ from .product.resolvers import (from .product.types import (Category, Collection, Product, ProductAttribute, ProductType,ProductVariant)-from .shipping.resolvers import resolve_shipping_methods+from .shipping.resolvers import resolve_shipping_zonesfrom .shipping.types import ShippingZonefrom .shipping.mutations import (ShippingZoneCreate, ShippingZoneDelete, ShippingZoneUpdate,@@ -239,8 +239,8 @@ class Query(graphene.ObjectType):def resolve_shipping_zone(self, info, id):return graphene.Node.get_node_from_global_id(info, id, ShippingZone)- def resolve_shipping_methods(self, info, **kwargs):- return resolve_shipping_methods(info)+ def resolve_shipping_zones(self, info, **kwargs):+ return resolve_shipping_zones(info)class Mutations(graphene.ObjectType):diff --git a/saleor/graphql/shipping/resolvers.py b/saleor/graphql/shipping/resolvers.pyindex adae1bcbcc..9723d5099a 100644--- a/saleor/graphql/shipping/resolvers.py+++ b/saleor/graphql/shipping/resolvers.py@@ -1,5 +1,5 @@from ...shipping import models-def resolve_shipping_methods(info):- return models.ShippingMethod.objects.all()+def resolve_shipping_zones(info):+ return models.ShippingZone.objects.all()