Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix code formatting issues
Marcin Gębala89113799e7a4
diff --git a/saleor/graphql/account/mutations.py b/saleor/graphql/account/mutations.pyindex 7b99a6434b..47b977710f 100644--- a/saleor/graphql/account/mutations.py+++ b/saleor/graphql/account/mutations.py@@ -75,7 +75,7 @@ class CustomerCreate(ModelMutation):@classmethoddef construct_address(cls, address_field_name, address_input, user_instance, errors):- if not address_field_name in [+ if address_field_name not in [BILLING_ADDRESS_FIELD, SHIPPING_ADDRESS_FIELD]:raise AssertionError('Wrong address_field_name: %s' % address_field_name)@@ -96,7 +96,8 @@ class CustomerCreate(ModelMutation):if shipping_address_input:shipping_address = cls.construct_address(- SHIPPING_ADDRESS_FIELD, shipping_address_input, instance, errors)+ SHIPPING_ADDRESS_FIELD, shipping_address_input, instance,+ errors)cleaned_input[SHIPPING_ADDRESS_FIELD] = shipping_addressif billing_address_input:diff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.pyindex fc7fe72f12..573a595c21 100644--- a/saleor/graphql/product/mutations/products.py+++ b/saleor/graphql/product/mutations/products.py@@ -358,6 +358,7 @@ class ProductVariantCreate(ModelMutation):def user_is_allowed(cls, user, input):return user.has_perm('product.manage_products')+class ProductVariantUpdate(ProductVariantCreate):class Arguments:id = graphene.ID(