Skip to content

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

correcting staff_member_required decorator import

Ankush Chaddad38ff77cc9c8
diff --git a/saleor/dashboard/search/views.py b/saleor/dashboard/search/views.py
index 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_required
from django.conf import settings
from django.shortcuts import render
@@ -6,6 +5,7 @@ from ...order.models import Order
from ...product.models import Product
from ...search.views import paginate_results
from ...userprofile.models import User
+from ..views import staff_member_required
from .forms import DashboardSearchForm
diff --git a/saleor/dashboard/shipping/views.py b/saleor/dashboard/shipping/views.py
index c12b6fa533..b369b35437 100644
--- a/saleor/dashboard/shipping/views.py
+++ b/saleor/dashboard/shipping/views.py
@@ -1,7 +1,6 @@
from __future__ import unicode_literals
from django.contrib import messages
-from django.contrib.admin.views.decorators import staff_member_required
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.utils.translation import pgettext_lazy
@@ -9,6 +8,7 @@ from django.utils.translation import pgettext_lazy
from ...core.utils import get_paginator_items
from ...shipping.models import ShippingMethod
+from ..views import staff_member_required
from .forms import ShippingMethodForm, ShippingMethodCountryFormSet