Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix imports newlines and order
Marcin Gębala2cc005eb30c9
diff --git a/saleor/dashboard/customer/urls.py b/saleor/dashboard/customer/urls.pyindex ee4b021309..d2597e6b6d 100644--- a/saleor/dashboard/customer/urls.py+++ b/saleor/dashboard/customer/urls.py@@ -1,6 +1,8 @@from django.conf.urls import patterns, url+from . import views+urlpatterns = patterns('',url(r'^$', views.customer_list, name='customers'),diff --git a/saleor/dashboard/customer/views.py b/saleor/dashboard/customer/views.pyindex 4c546f0ae5..9070b0197f 100644--- a/saleor/dashboard/customer/views.py+++ b/saleor/dashboard/customer/views.py@@ -3,6 +3,7 @@ from django.db.models import Count, Max, Qfrom django.shortcuts import get_object_or_404from django.template.response import TemplateResponsefrom django.utils.translation import ugettext_lazy as _+from .forms import CustomerSearchFormfrom ..views import staff_member_requiredfrom ...userprofile.models import Userdiff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.pyindex 7c0696634c..b3741c27c7 100644--- a/saleor/dashboard/order/forms.py+++ b/saleor/dashboard/order/forms.py@@ -1,7 +1,7 @@from django import formsfrom django.utils.translation import ugettext_lazy as _-from satchless.item import InsufficientStockfrom payments import PaymentError+from satchless.item import InsufficientStockfrom ...cart.forms import QuantityFieldfrom ...order.models import OrderNote, DeliveryGroupdiff --git a/saleor/dashboard/order/urls.py b/saleor/dashboard/order/urls.pyindex 89c15798df..f355e9d96e 100644--- a/saleor/dashboard/order/urls.py+++ b/saleor/dashboard/order/urls.py@@ -1,6 +1,8 @@from django.conf.urls import patterns, url+from . import views+urlpatterns = patterns('',url(r'^$', views.OrderListView.as_view(), name='orders'),diff --git a/saleor/dashboard/order/views.py b/saleor/dashboard/order/views.pyindex 30fb5fdcf8..f451c209d6 100644--- a/saleor/dashboard/order/views.py+++ b/saleor/dashboard/order/views.py@@ -1,10 +1,10 @@from django.contrib import messages-from django.utils.translation import ugettext_lazy as _-from django.views.generic import ListView+from django.core.context_processors import csrf+from django.http import HttpResponseForbiddenfrom django.shortcuts import get_object_or_404, redirectfrom django.template.response import TemplateResponse-from django.http import HttpResponseForbidden-from django.core.context_processors import csrf+from django.utils.translation import ugettext_lazy as _+from django.views.generic import ListViewfrom prices import Pricefrom ...order.models import Order, OrderedItem, DeliveryGroup, Paymentdiff --git a/saleor/dashboard/payments/urls.py b/saleor/dashboard/payments/urls.pyindex ca171b2dd8..756fcaa6eb 100644--- a/saleor/dashboard/payments/urls.py+++ b/saleor/dashboard/payments/urls.py@@ -1,6 +1,8 @@from django.conf.urls import patterns, url+from . import views+urlpatterns = patterns('',url(r'^$', views.PaymentList.as_view(), name='payments'),diff --git a/saleor/dashboard/payments/views.py b/saleor/dashboard/payments/views.pyindex e1003ed09a..dc571c8984 100644--- a/saleor/dashboard/payments/views.py+++ b/saleor/dashboard/payments/views.py@@ -1,4 +1,5 @@import json+from django.shortcuts import get_object_or_404from django.template.response import TemplateResponsefrom django.views.generic import ListViewdiff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.pyindex cf3ddf7e32..06fc3bf223 100644--- a/saleor/dashboard/product/forms.py+++ b/saleor/dashboard/product/forms.py@@ -1,6 +1,7 @@from django import formsfrom django.forms.models import inlineformset_factoryfrom django.forms.widgets import ClearableFileInput+from ...product.models import (ProductImage, Product, Category, ShirtVariant,BagVariant, Shirt, Bag)diff --git a/saleor/dashboard/product/urls.py b/saleor/dashboard/product/urls.pyindex b15df18ee6..e3984ce6be 100644--- a/saleor/dashboard/product/urls.py+++ b/saleor/dashboard/product/urls.py@@ -1,6 +1,8 @@from django.conf.urls import patterns, url+from . import views+urlpatterns = patterns('',url(r'^$',diff --git a/saleor/dashboard/product/views.py b/saleor/dashboard/product/views.pyindex 657dc03d4b..c9a413e781 100644--- a/saleor/dashboard/product/views.py+++ b/saleor/dashboard/product/views.py@@ -1,10 +1,11 @@-from django.core.urlresolvers import reverse_lazy-from django.core.paginator import Paginator, EmptyPage, PageNotAnIntegerfrom django.contrib import messages+from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger+from django.core.urlresolvers import reverse_lazyfrom django.shortcuts import redirectfrom django.template.response import TemplateResponse-from django.views.generic import DeleteViewfrom django.utils.translation import ugettext_lazy as _+from django.views.generic import DeleteView+from ...product.models import Productfrom ..views import StaffMemberOnlyMixin, staff_member_requiredfrom .forms import (ProductImageFormSet, ProductCategoryForm, get_product_form,diff --git a/saleor/dashboard/urls.py b/saleor/dashboard/urls.pyindex 68b3bbf579..7f6842f847 100644--- a/saleor/dashboard/urls.py+++ b/saleor/dashboard/urls.py@@ -1,10 +1,10 @@from django.conf.urls import patterns, url, include-from . import views as core_views+from . import views as core_views+from .customer.urls import urlpatterns as customer_urlsfrom .order.urls import urlpatterns as order_urls-from .product.urls import urlpatterns as product_urlsfrom .payments.urls import urlpatterns as payments_urls-from .customer.urls import urlpatterns as customer_urls+from .product.urls import urlpatterns as product_urlsurlpatterns = patterns(diff --git a/saleor/dashboard/views.py b/saleor/dashboard/views.pyindex 5ccb0148f0..911aea44c4 100644--- a/saleor/dashboard/views.py+++ b/saleor/dashboard/views.py@@ -1,6 +1,6 @@-from django.contrib.auth.decorators import user_passes_testfrom django.contrib.admin.views.decorators import staff_member_required \as _staff_member_required+from django.contrib.auth.decorators import user_passes_testfrom django.template.response import TemplateResponsefrom django.utils.decorators import method_decoratorfrom prices import Price