Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add phone validation
Maciej Korycinski102a8c30d3c4
diff --git a/saleor/graphql/shop/mutations.py b/saleor/graphql/shop/mutations.pyindex 4854ca4495..4cd6146ac3 100644--- a/saleor/graphql/shop/mutations.py+++ b/saleor/graphql/shop/mutations.py@@ -5,6 +5,7 @@ from django.core.management import call_commandfrom ...account.models import Addressfrom ...site import models as site_models+from ..account.i18n import I18nMixinfrom ..account.types import AddressInputfrom ..core.enums import WeightUnitsEnumfrom ..core.mutations import BaseMutation@@ -65,7 +66,7 @@ class ShopSettingsUpdate(BaseMutation):return ShopSettingsUpdate(shop=Shop())-class ShopAddressUpdate(BaseMutation):+class ShopAddressUpdate(BaseMutation, I18nMixin):shop = graphene.Field(Shop, description="Updated Shop")class Arguments: