Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix code formatting issues
Marcin Gębalafdceb17f1ebf
diff --git a/saleor/graphql/account/resolvers.py b/saleor/graphql/account/resolvers.pyindex b32ecbd5ea..2cc3c0497f 100644--- a/saleor/graphql/account/resolvers.py+++ b/saleor/graphql/account/resolvers.py@@ -1,7 +1,6 @@from ...account import modelsfrom ..utils import filter_by_query_param-USER_SEARCH_FIELDS = ('email', 'default_shipping_address__first_name','default_shipping_address__last_name', 'default_shipping_address__city',diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.pyindex 5a6154a211..aeb8e4ccc9 100644--- a/saleor/graphql/core/mutations.py+++ b/saleor/graphql/core/mutations.py@@ -134,14 +134,14 @@ class ModelMutation(BaseMutation):def is_list_of_ids(field):return (- isinstance(field.type, graphene.List) and- field.type.of_type == graphene.ID)+ isinstance(field.type, graphene.List)+ and field.type.of_type == graphene.ID)def is_id_field(field):return (- field.type == graphene.ID or- isinstance(field.type, graphene.NonNull) and- field.type.of_type == graphene.ID)+ field.type == graphene.ID+ or isinstance(field.type, graphene.NonNull)+ and field.type.of_type == graphene.ID)def is_upload_field(field):if hasattr(field.type, 'of_type'):@@ -158,7 +158,8 @@ class ModelMutation(BaseMutation):# handle list of IDs fieldif value is not None and is_list_of_ids(field):instances = cls.get_nodes_or_error(- value, errors=errors, field=field_name) if value else []+ value, errors=errors,+ field=field_name) if value else []cleaned_input[field_name] = instances# handle ID field