Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
correcting staff_member_required decorator import
Ankush Chaddad38ff77cc9c8
diff --git a/saleor/dashboard/search/views.py b/saleor/dashboard/search/views.pyindex d28eacbcfd..4f75a525f2 100644--- a/saleor/dashboard/search/views.py+++ b/saleor/dashboard/search/views.py@@ -1,4 +1,3 @@-from django.contrib.admin.views.decorators import staff_member_requiredfrom django.conf import settingsfrom django.shortcuts import render@@ -6,6 +5,7 @@ from ...order.models import Orderfrom ...product.models import Productfrom ...search.views import paginate_resultsfrom ...userprofile.models import User+from ..views import staff_member_requiredfrom .forms import DashboardSearchFormdiff --git a/saleor/dashboard/shipping/views.py b/saleor/dashboard/shipping/views.pyindex c12b6fa533..b369b35437 100644--- a/saleor/dashboard/shipping/views.py+++ b/saleor/dashboard/shipping/views.py@@ -1,7 +1,6 @@from __future__ import unicode_literalsfrom django.contrib import messages-from django.contrib.admin.views.decorators import staff_member_requiredfrom django.shortcuts import get_object_or_404, redirectfrom django.template.response import TemplateResponsefrom django.utils.translation import pgettext_lazy@@ -9,6 +8,7 @@ from django.utils.translation import pgettext_lazyfrom ...core.utils import get_paginator_itemsfrom ...shipping.models import ShippingMethod+from ..views import staff_member_requiredfrom .forms import ShippingMethodForm, ShippingMethodCountryFormSet