Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix import order
fowczarekfe4c82157b8e
diff --git a/saleor/graphql/api.py b/saleor/graphql/api.pyindex 3dda427e7c..36b949b8e7 100644--- a/saleor/graphql/api.py+++ b/saleor/graphql/api.py@@ -1,7 +1,8 @@+from textwrap import dedent+import grapheneimport graphql_jwtfrom graphql_jwt.decorators import login_required, permission_required-from textwrap import dedentfrom .account.mutations import (CustomerCreate, CustomerDelete, CustomerUpdate, CustomerPasswordReset,diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.pyindex 559ef7391c..31f956a7bf 100644--- a/saleor/graphql/core/mutations.py+++ b/saleor/graphql/core/mutations.py@@ -1,4 +1,5 @@from itertools import chain+from textwrap import dedentimport graphenefrom django.core.exceptions import ImproperlyConfigured, ValidationError@@ -7,7 +8,6 @@ from graphene_django.registry import get_global_registryfrom graphql.error import GraphQLErrorfrom graphql_jwt import ObtainJSONWebToken, Verifyfrom graphql_jwt.exceptions import JSONWebTokenError, PermissionDenied-from textwrap import dedentfrom ...account import modelsfrom ..account.types import Userdiff --git a/saleor/graphql/core/types/common.py b/saleor/graphql/core/types/common.pyindex 0dad146523..02442d4806 100644--- a/saleor/graphql/core/types/common.py+++ b/saleor/graphql/core/types/common.py@@ -1,10 +1,10 @@import decimal+from textwrap import dedentimport graphenefrom graphene_django import DjangoObjectTypefrom saleor.core.permissions import MODELS_PERMISSIONSfrom saleor.graphql.core.utils import str_to_enum-from textwrap import dedentfrom ....core import weightfrom ..connection import CountableConnectiondiff --git a/saleor/graphql/core/types/money.py b/saleor/graphql/core/types/money.pyindex c92c101c03..2a99bfc8b6 100644--- a/saleor/graphql/core/types/money.py+++ b/saleor/graphql/core/types/money.py@@ -1,6 +1,7 @@+from textwrap import dedent+import graphenefrom django_prices.templatetags import prices_i18n-from textwrap import dedentfrom ....core import TaxRateType as TaxRatesfrom ..utils import str_to_enumdiff --git a/saleor/graphql/discount/types.py b/saleor/graphql/discount/types.pyindex c18d27e779..3c34fc477e 100644--- a/saleor/graphql/discount/types.py+++ b/saleor/graphql/discount/types.py@@ -1,7 +1,8 @@+from textwrap import dedent+import grapheneimport graphene_django_optimizer as gql_optimizerfrom graphene import relay-from textwrap import dedentfrom ..core.fields import PrefetchingConnectionFieldfrom ...discount import DiscountValueType, VoucherType, modelsdiff --git a/saleor/graphql/file_upload/types.py b/saleor/graphql/file_upload/types.pyindex d809afb682..95aebd3140 100644--- a/saleor/graphql/file_upload/types.py+++ b/saleor/graphql/file_upload/types.py@@ -1,6 +1,7 @@-import graphenefrom textwrap import dedent+import graphene+class Upload(graphene.types.Scalar):diff --git a/saleor/graphql/menu/types.py b/saleor/graphql/menu/types.pyindex 9d4a8c5ba6..7cd1fb69f0 100644--- a/saleor/graphql/menu/types.py+++ b/saleor/graphql/menu/types.py@@ -1,8 +1,9 @@+from textwrap import dedent+import grapheneimport graphene_django_optimizer as gql_optimizerfrom django.db.models import Prefetchfrom graphene import relay-from textwrap import dedentfrom ...menu import modelsfrom ..core.types.common import CountableDjangoObjectTypediff --git a/saleor/graphql/order/mutations/draft_orders.py b/saleor/graphql/order/mutations/draft_orders.pyindex 602960eb21..d401943aa4 100644--- a/saleor/graphql/order/mutations/draft_orders.py+++ b/saleor/graphql/order/mutations/draft_orders.py@@ -1,7 +1,8 @@+from textwrap import dedent+import graphenefrom graphene.types import InputObjectTypefrom graphql_jwt.decorators import permission_required-from textwrap import dedentfrom ....account.models import Address, Userfrom ....core.exceptions import InsufficientStockdiff --git a/saleor/graphql/order/mutations/fulfillments.py b/saleor/graphql/order/mutations/fulfillments.pyindex 91d153697e..6d3bd93b24 100644--- a/saleor/graphql/order/mutations/fulfillments.py+++ b/saleor/graphql/order/mutations/fulfillments.py@@ -1,7 +1,8 @@+from textwrap import dedent+import graphenefrom django.utils.translation import npgettext_lazy, pgettext_lazyfrom graphql_jwt.decorators import permission_required-from textwrap import dedentfrom ....dashboard.order.utils import fulfill_order_linefrom ....order import OrderEvents, OrderEventsEmails, modelsdiff --git a/saleor/graphql/page/mutations.py b/saleor/graphql/page/mutations.pyindex 58c70a917d..3b9fa158a3 100644--- a/saleor/graphql/page/mutations.py+++ b/saleor/graphql/page/mutations.py@@ -1,6 +1,7 @@+from textwrap import dedent+import graphenefrom django.utils.text import slugify-from textwrap import dedentfrom ...page import modelsfrom ..core.mutations import ModelDeleteMutation, ModelMutationdiff --git a/saleor/graphql/page/types.py b/saleor/graphql/page/types.pyindex ed46c73214..ae62ceb934 100644--- a/saleor/graphql/page/types.py+++ b/saleor/graphql/page/types.py@@ -1,6 +1,7 @@-from graphene import relayfrom textwrap import dedent+from graphene import relay+from ...page import modelsfrom ..core.types.common import CountableDjangoObjectTypediff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.pyindex e4ee416829..d9d200bdb0 100644--- a/saleor/graphql/product/mutations/products.py+++ b/saleor/graphql/product/mutations/products.py@@ -1,8 +1,9 @@+from textwrap import dedent+import graphenefrom django.template.defaultfilters import slugifyfrom graphene.types import InputObjectTypefrom graphql_jwt.decorators import permission_required-from textwrap import dedentfrom ....product import modelsfrom ....product.utils.attributes import get_name_from_attributesdiff --git a/saleor/graphql/shipping/mutations.py b/saleor/graphql/shipping/mutations.pyindex 275349e692..53cc78fb6b 100644--- a/saleor/graphql/shipping/mutations.py+++ b/saleor/graphql/shipping/mutations.py@@ -1,6 +1,7 @@-import graphenefrom textwrap import dedent+import graphene+from ...dashboard.shipping.forms import default_shipping_zone_existsfrom ...shipping import modelsfrom ..core.mutations import ModelDeleteMutation, ModelMutationdiff --git a/saleor/graphql/shipping/types.py b/saleor/graphql/shipping/types.pyindex a08acfce1e..26b6dec116 100644--- a/saleor/graphql/shipping/types.py+++ b/saleor/graphql/shipping/types.py@@ -1,11 +1,11 @@import decimal+from textwrap import dedentimport grapheneimport graphene_django_optimizer as gql_optimizerfrom graphene import relayfrom graphene.types import Scalarfrom measurement.measures import Weight-from textwrap import dedentfrom ...core.weight import convert_weight, get_default_weight_unitfrom ...shipping import ShippingMethodType, models