Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use site from context processor
Anna Siwikfc72bdea5dae
diff --git a/saleor/dashboard/taxes/views.py b/saleor/dashboard/taxes/views.pyindex 063e423e43..1f349e7365 100644--- a/saleor/dashboard/taxes/views.py+++ b/saleor/dashboard/taxes/views.py@@ -22,9 +22,8 @@ def tax_list(request):tax_filter = TaxFilter(request.GET, queryset=taxes)taxes = get_paginator_items(tax_filter.qs, settings.DASHBOARD_PAGINATE_BY, request.GET.get('page'))- site_settings = request.site.settingsctx = {- 'taxes': taxes, 'settings': site_settings, 'filter_set': tax_filter,+ 'taxes': taxes, 'filter_set': tax_filter,'is_empty': not tax_filter.queryset.exists()}return TemplateResponse(request, 'dashboard/taxes/list.html', ctx)diff --git a/templates/checkout/details.html b/templates/checkout/details.htmlindex 56bf82a1bc..af9d3d2247 100644--- a/templates/checkout/details.html+++ b/templates/checkout/details.html@@ -71,7 +71,7 @@{% with total=checkout.get_total %}<div class="row checkout__review__section"><div class="col-8">- {% if request.site.settings.display_gross_prices %}+ {% if site.settings.display_gross_prices %}<p>{% trans "Taxes (included)" context "Order review section title" %}</p>{% else %}<p>{% trans "Taxes" context "Order review section title" %}</p>diff --git a/templates/dashboard/taxes/list.html b/templates/dashboard/taxes/list.htmlindex fcb9fffc66..9dde203873 100644--- a/templates/dashboard/taxes/list.html+++ b/templates/dashboard/taxes/list.html@@ -81,7 +81,7 @@{% trans "All taxes are included in my prices" context "Site settings field" %}</h4><p>- {% if settings.include_taxes_in_prices %}+ {% if site.settings.include_taxes_in_prices %}{% trans "Yes" context "Include taxes in prices setting description" %}{% else %}{% trans "No" context "Include taxes in prices setting description" %}@@ -95,7 +95,7 @@{% trans "Show customers gross prices in storefront" context "Site settings field" %}</h4><p>- {% if settings.display_gross_prices %}+ {% if site.settings.display_gross_prices %}{% trans "Yes" context "Show customers gross prices setting description" %}{% else %}{% trans "No" context "Show customers gross prices setting description" %}@@ -109,7 +109,7 @@{% trans "Charge taxes on shipping rates" context "Site settings field" %}</h4><p>- {% if settings.charge_taxes_on_shipping %}+ {% if site.settings.charge_taxes_on_shipping %}{% trans "Yes" context "Charge taxes on shipping rates setting description" %}{% else %}{% trans "No" context "Charge taxes on shipping rates setting description" %}