Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix imports and pep8
michalfc9f1f5debb4
diff --git a/saleor/account/models.py b/saleor/account/models.pyindex 68c4535b4b..b9a722ee3f 100644--- a/saleor/account/models.py+++ b/saleor/account/models.py@@ -8,8 +8,8 @@ from django.utils.translation import pgettext_lazyfrom django_countries.fields import Country, CountryFieldfrom phonenumber_field.modelfields import PhoneNumberField-from .validators import validate_possible_numberfrom ..core.models import BaseNote+from .validators import validate_possible_numberclass 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.pyindex 4984b76ac9..2aa9d50367 100644--- a/saleor/dashboard/customer/forms.py+++ b/saleor/dashboard/customer/forms.py@@ -1,7 +1,7 @@from django import formsfrom django.utils.translation import pgettext_lazy-from ...account.models import User, CustomerNote+from ...account.models import CustomerNote, Userclass CustomerForm(forms.ModelForm):diff --git a/saleor/dashboard/customer/views.py b/saleor/dashboard/customer/views.pyindex 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 csrffrom django.template.response import TemplateResponsefrom django.utils.translation import pgettext_lazy-from ...account.models import User, CustomerNote+from ...account.models import CustomerNote, Userfrom ...core.utils import get_paginator_itemsfrom ..emails import send_set_password_emailfrom ..views import staff_member_required