Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use only relative imports
Mira Szewczyk40c1a40933bd
diff --git a/saleor/dashboard/warehouse/forms.py b/saleor/dashboard/warehouse/forms.pyindex 5b46b20f4e..a1193615a2 100644--- a/saleor/dashboard/warehouse/forms.py+++ b/saleor/dashboard/warehouse/forms.py@@ -1,7 +1,7 @@from django import forms-from saleor.account.models import Address-from saleor.warehouse.models import Warehouse+from ...account.models import Address+from ...warehouse.models import Warehouseclass WarehouseAddressForm(forms.ModelForm):diff --git a/saleor/dashboard/warehouse/views.py b/saleor/dashboard/warehouse/views.pyindex 3088c7ac8a..801868aff7 100644--- a/saleor/dashboard/warehouse/views.py+++ b/saleor/dashboard/warehouse/views.py@@ -7,14 +7,10 @@ from django.shortcuts import get_object_or_404, redirectfrom django.template.response import TemplateResponsefrom django.utils.translation import pgettext_lazy-from saleor.core.utils import get_paginator_items-from saleor.dashboard.views import staff_member_required-from saleor.dashboard.warehouse.forms import (- WarehouseAddressForm,- WarehouseForm,- save_warehouse_from_forms,-)-from saleor.warehouse.models import Warehouse+from ...core.utils import get_paginator_items+from ...warehouse.models import Warehouse+from ..views import staff_member_required+from .forms import WarehouseAddressForm, WarehouseForm, save_warehouse_from_formsif TYPE_CHECKING:from uuid import UUIDdiff --git a/saleor/graphql/warehouse/mutations.py b/saleor/graphql/warehouse/mutations.pyindex 6173f6d875..49b6664fb1 100644--- a/saleor/graphql/warehouse/mutations.py+++ b/saleor/graphql/warehouse/mutations.py@@ -1,10 +1,10 @@import graphene-from saleor.account.models import Address-from saleor.graphql.core.mutations import ModelDeleteMutation, ModelMutation-from saleor.graphql.core.types.common import WarehouseError-from saleor.graphql.warehouse.types import WarehouseCreateInput, WarehouseUpdateInput-from saleor.warehouse import models+from ...account.models import Address+from ...warehouse import models+from ..core.mutations import ModelDeleteMutation, ModelMutation+from ..core.types.common import WarehouseError+from .types import WarehouseCreateInput, WarehouseUpdateInputADDRESS_FIELDS = ["street_address_1",diff --git a/saleor/graphql/warehouse/schema.py b/saleor/graphql/warehouse/schema.pyindex 8c5abde471..cd4c2ef6db 100644--- a/saleor/graphql/warehouse/schema.py+++ b/saleor/graphql/warehouse/schema.py@@ -2,15 +2,11 @@ import grapheneimport graphene_django_optimizer as gql_optimizerfrom graphql_jwt.decorators import login_required-from saleor.graphql.core.fields import PrefetchingConnectionField-from saleor.graphql.decorators import permission_required-from saleor.graphql.warehouse.mutations import (- WarehouseCreate,- WarehouseDelete,- WarehouseUpdate,-)-from saleor.graphql.warehouse.types import Warehouse-from saleor.warehouse import models+from ...warehouse import models+from ..core.fields import PrefetchingConnectionField+from ..decorators import permission_required+from .mutations import WarehouseCreate, WarehouseDelete, WarehouseUpdate+from .types import Warehouseclass WarehouseQueries(graphene.ObjectType):diff --git a/saleor/graphql/warehouse/types.py b/saleor/graphql/warehouse/types.pyindex d948088aa8..d43813a380 100644--- a/saleor/graphql/warehouse/types.py+++ b/saleor/graphql/warehouse/types.py@@ -1,8 +1,8 @@import graphene-from saleor.graphql.account.enums import CountryCodeEnum-from saleor.graphql.core.connection import CountableDjangoObjectType-from saleor.warehouse import models+from ...warehouse import models+from ..account.enums import CountryCodeEnum+from ..core.connection import CountableDjangoObjectTypeclass WarehouseAddressInput(graphene.InputObjectType):diff --git a/saleor/warehouse/models.py b/saleor/warehouse/models.pyindex 8135c91991..689700a352 100644--- a/saleor/warehouse/models.py+++ b/saleor/warehouse/models.py@@ -3,8 +3,8 @@ import uuidfrom django.db import modelsfrom django.utils.translation import pgettext_lazy-from saleor.account.models import Address-from saleor.shipping.models import ShippingZone+from ..account.models import Address+from ..shipping.models import ShippingZoneclass WarehouseQueryset(models.QuerySet):