Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove unused code and update base.html
IKarbowiakc7bced8955f4
diff --git a/saleor/account/utils.py b/saleor/account/utils.pyindex b579909c68..f2e08e8716 100644--- a/saleor/account/utils.py+++ b/saleor/account/utils.py@@ -2,9 +2,6 @@ import osimport randomfrom django.conf import settings-from django.contrib.admin.views.decorators import (- staff_member_required as django_staff_member_required,-)from django.core.files import Filefrom ..checkout import AddressType@@ -117,7 +114,3 @@ def remove_staff_member(staff):staff.save()else:staff.delete()---def staff_member_required(f):- return django_staff_member_required(f, login_url="account:login")diff --git a/templates/base.html b/templates/base.htmlindex a8be522794..3c331f36e0 100644--- a/templates/base.html+++ b/templates/base.html@@ -102,7 +102,7 @@{% else %}0{% endif %}- </span>+ </span></a><div class="checkout-preview-dropdown d-none">{% include 'checkout_dropdown.html' %}@@ -149,11 +149,6 @@</strong></a><hr />- <li>- <a rel="nofollow" href="{% url "checkout:index" %}">- {% trans "Your cart" context "Main navigation item" %}- </a>- </li></ul></div><div class="offset-md-2 col-md-4 col-12">diff --git a/tests/test_templatetags.py b/tests/test_templatetags.pyindex 6e986ef756..aa78974082 100644--- a/tests/test_templatetags.py+++ b/tests/test_templatetags.py@@ -1,5 +1,4 @@from saleor.core.templatetags.shop import menu-from saleor.core.templatetags.status import LABEL_SUCCESS, render_page_availabilitydef test_menu(menu_with_items):@@ -8,13 +7,3 @@ def test_menu(menu_with_items):result = menu(menu_with_items)assert result["menu_items"] == menu_with_items.json_content---def test_render_page_availability(page):- page_ctx = render_page_availability(page)- assert page_ctx == {"page": page, "is_visible": True, "label_cls": LABEL_SUCCESS}-- page.is_published = False- page.save()- page_ctx = render_page_availability(page)- assert page_ctx == {"page": page, "is_visible": False}