Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix imports and pep8

michalfc9f1f5debb4
diff --git a/saleor/account/models.py b/saleor/account/models.py
index 68c4535b4b..b9a722ee3f 100644
--- a/saleor/account/models.py
+++ b/saleor/account/models.py
@@ -8,8 +8,8 @@ from django.utils.translation import pgettext_lazy
from django_countries.fields import Country, CountryField
from phonenumber_field.modelfields import PhoneNumberField
-from .validators import validate_possible_number
from ..core.models import BaseNote
+from .validators import validate_possible_number
class PossiblePhoneNumberField(PhoneNumberField):
@@ -139,7 +139,8 @@ class User(PermissionsMixin, AbstractBaseUser):
class CustomerNote(BaseNote):
customer = models.ForeignKey(
- settings.AUTH_USER_MODEL, related_name='notes', on_delete=models.CASCADE)
+ settings.AUTH_USER_MODEL, related_name='notes',
+ on_delete=models.CASCADE)
class Meta:
ordering = ('date', )
diff --git a/saleor/dashboard/customer/forms.py b/saleor/dashboard/customer/forms.py
index 4984b76ac9..2aa9d50367 100644
--- a/saleor/dashboard/customer/forms.py
+++ b/saleor/dashboard/customer/forms.py
@@ -1,7 +1,7 @@
from django import forms
from django.utils.translation import pgettext_lazy
-from ...account.models import User, CustomerNote
+from ...account.models import CustomerNote, User
class CustomerForm(forms.ModelForm):
diff --git a/saleor/dashboard/customer/views.py b/saleor/dashboard/customer/views.py
index 0839a13d1a..44a972e4c9 100644
--- a/saleor/dashboard/customer/views.py
+++ b/saleor/dashboard/customer/views.py
@@ -8,7 +8,7 @@ from django.template.context_processors import csrf
from django.template.response import TemplateResponse
from django.utils.translation import pgettext_lazy
-from ...account.models import User, CustomerNote
+from ...account.models import CustomerNote, User
from ...core.utils import get_paginator_items
from ..emails import send_set_password_email
from ..views import staff_member_required