Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Drop excessive method prefix in shipping templates
Jakub Draganek21a3f10d208a
diff --git a/saleor/dashboard/shipping/views.py b/saleor/dashboard/shipping/views.pyindex 08d13907e2..e520f7e9ac 100644--- a/saleor/dashboard/shipping/views.py+++ b/saleor/dashboard/shipping/views.py@@ -17,7 +17,7 @@ def shipping_method_list(request):methods = ShippingMethod.objects.prefetch_related('price_per_country').all()methods = get_paginator_items(methods, 30, request.GET.get('page'))ctx = {'shipping_methods': methods}- return TemplateResponse(request, 'dashboard/shipping/method_list.html', ctx)+ return TemplateResponse(request, 'dashboard/shipping/list.html', ctx)@superuser_required@@ -35,7 +35,7 @@ def shipping_method_edit(request, method):'dashboard:shipping-method-detail', pk=shipping_method.pk)ctx = {'shipping_method_form': form,'price_per_country_formset': formset, 'shipping_method': method}- return TemplateResponse(request, 'dashboard/shipping/method_form.html', ctx)+ return TemplateResponse(request, 'dashboard/shipping/form.html', ctx)@superuser_required@@ -58,7 +58,7 @@ def shipping_method_detail(request, pk):method_countries = method.price_per_country.all()ctx = {'shipping_method': method, 'method_countries': method_countries}return TemplateResponse(- request, 'dashboard/shipping/method_detail.html', ctx)+ request, 'dashboard/shipping/detail.html', ctx)@superuser_requireddiff --git a/templates/dashboard/shipping/method_detail.html b/templates/dashboard/shipping/detail.htmlsimilarity index 100%rename from templates/dashboard/shipping/method_detail.htmlrename to templates/dashboard/shipping/detail.htmldiff --git a/templates/dashboard/shipping/method_form.html b/templates/dashboard/shipping/form.htmlsimilarity index 100%rename from templates/dashboard/shipping/method_form.htmlrename to templates/dashboard/shipping/form.htmldiff --git a/templates/dashboard/shipping/method_list.html b/templates/dashboard/shipping/list.htmlsimilarity index 100%rename from templates/dashboard/shipping/method_list.htmlrename to templates/dashboard/shipping/list.html