Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use consistent name for url of product list view
Marcin Gębala8528aa0891e8
diff --git a/saleor/dashboard/product/urls.py b/saleor/dashboard/product/urls.pyindex ed56518f04..d72ea2dad6 100644--- a/saleor/dashboard/product/urls.py+++ b/saleor/dashboard/product/urls.py@@ -7,7 +7,7 @@ from . import viewsurlpatterns = patterns('',url(r'^$',- views.product_list, name='products'),+ views.product_list, name='product-list'),url(r'^(?P<pk>[0-9]+)/update/$',views.product_edit, name='product-update'),url(r'^add/$',diff --git a/saleor/dashboard/product/views.py b/saleor/dashboard/product/views.pyindex 35b6501956..c7da24883a 100644--- a/saleor/dashboard/product/views.py+++ b/saleor/dashboard/product/views.py@@ -114,7 +114,7 @@ def product_delete(request, pk):if request.method == 'POST':product.delete()messages.success(request, _('Deleted product %s') % product)- return redirect('dashboard:products')+ return redirect('dashboard:product-list')return TemplateResponse(request,'dashboard/product/product_confirm_delete.html',{'product': product})diff --git a/saleor/dashboard/templates/dashboard/base.html b/saleor/dashboard/templates/dashboard/base.htmlindex dfb5839866..8fb087dd95 100644--- a/saleor/dashboard/templates/dashboard/base.html+++ b/saleor/dashboard/templates/dashboard/base.html@@ -59,7 +59,7 @@<a class="waves-effect waves-teal collapsible-header{% block menu_catalogue_class %}{% endblock %}">{% trans "Catalogue" %}</a><div class="collapsible-body"><ul>- <li class="subnav-products"><a href="{% url 'dashboard:products' %}">{% trans "Products" %}</a></li>+ <li class="subnav-products"><a href="{% url 'dashboard:product-list' %}">{% trans "Products" %}</a></li><li class="subnav-attributes"><a href="{% url 'dashboard:product-attributes' %}">{% trans "Attributes" %}</a></li><li class="subnav-categories"><a href="{% url 'dashboard:categories' %}">{% trans "Categories" %}</a></li></ul>diff --git a/saleor/dashboard/templates/dashboard/product/product_confirm_delete.html b/saleor/dashboard/templates/dashboard/product/product_confirm_delete.htmlindex e023501a78..6c970638e7 100644--- a/saleor/dashboard/templates/dashboard/product/product_confirm_delete.html+++ b/saleor/dashboard/templates/dashboard/product/product_confirm_delete.html@@ -14,7 +14,7 @@{% block breadcrumbs %}<ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:products" %}">{% trans "Products" %}</a></li>+ <li><a href="{% url "dashboard:product-list" %}">{% trans "Products" %}</a></li><li><a href="{% url "dashboard:product-update" pk=product.pk %}">{{ product }}</a></li><li><span class="hide-on-med-and-down">{% trans "Delete product" %}</span>diff --git a/saleor/dashboard/templates/dashboard/product/product_form.html b/saleor/dashboard/templates/dashboard/product/product_form.htmlindex 4307365aa0..603a70bf40 100644--- a/saleor/dashboard/templates/dashboard/product/product_form.html+++ b/saleor/dashboard/templates/dashboard/product/product_form.html@@ -9,7 +9,7 @@{% block body_class %}body-store body-products{% endblock %}{% block header_menu %}- {% url "dashboard:products" as url %}+ {% url "dashboard:product-list" as url %}{% include "dashboard/includes/_back-link.html" with url=url %}{% endblock %}@@ -30,7 +30,7 @@{% block breadcrumbs %}<ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:products" %}">{% trans "Products" %}</a></li>+ <li><a href="{% url "dashboard:product-list" %}">{% trans "Products" %}</a></li><li title="{{ title }}">{{ title }}</li></ul>{% endblock %}diff --git a/saleor/dashboard/templates/dashboard/product/product_image_confirm_delete.html b/saleor/dashboard/templates/dashboard/product/product_image_confirm_delete.htmlindex eb924ffbf3..50ab5b2367 100644--- a/saleor/dashboard/templates/dashboard/product/product_image_confirm_delete.html+++ b/saleor/dashboard/templates/dashboard/product/product_image_confirm_delete.html@@ -12,7 +12,7 @@{% block breadcrumbs %}<ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:products" %}">{% trans "Products" %}</a></li>+ <li><a href="{% url "dashboard:product-list" %}">{% trans "Products" %}</a></li><li><a href="{% url "dashboard:product-update" pk=product.pk %}"><i class="mdi-navigation-chevron-right"></i>{{ product }}</a></li><li><i class="mdi-navigation-chevron-right"></i> {% trans "Delete image" %}</li></ul>diff --git a/saleor/dashboard/templates/dashboard/product/product_image_form.html b/saleor/dashboard/templates/dashboard/product/product_image_form.htmlindex 9f0b654784..2c11dcaf30 100644--- a/saleor/dashboard/templates/dashboard/product/product_image_form.html+++ b/saleor/dashboard/templates/dashboard/product/product_image_form.html@@ -20,7 +20,7 @@{% block breadcrumbs %}<ul class="breadcrumbs">- <li><a href="{% url "dashboard:products" %}">{% trans "Products" %}</a></li>+ <li><a href="{% url "dashboard:product-list" %}">{% trans "Products" %}</a></li><li><a href="{% url "dashboard:product-update" pk=product.pk %}#images">{{ product }}</a></li>{% if product_image.pk %}<li>{{ product_image.image }}</li>diff --git a/saleor/dashboard/templates/dashboard/product/product_variant_confirm_delete.html b/saleor/dashboard/templates/dashboard/product/product_variant_confirm_delete.htmlindex 70fa54b223..9ba9dc5db9 100644--- a/saleor/dashboard/templates/dashboard/product/product_variant_confirm_delete.html+++ b/saleor/dashboard/templates/dashboard/product/product_variant_confirm_delete.html@@ -12,7 +12,7 @@{% block breadcrumbs %}<ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:products" %}">{% trans "Products" %}</a></li>+ <li><a href="{% url "dashboard:product-list" %}">{% trans "Products" %}</a></li><li><a href="{% url "dashboard:product-update" pk=product.pk %}#variants">{{ product }}</a></li><li><span class="hide-on-med-and-down">{% trans "Delete variant" %}</span>diff --git a/saleor/dashboard/templates/dashboard/product/stock_confirm_delete.html b/saleor/dashboard/templates/dashboard/product/stock_confirm_delete.htmlindex d163585ec1..4e6c1a14f1 100644--- a/saleor/dashboard/templates/dashboard/product/stock_confirm_delete.html+++ b/saleor/dashboard/templates/dashboard/product/stock_confirm_delete.html@@ -12,7 +12,7 @@{% block breadcrumbs %}<ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:products" %}">{% trans "Products" %}</a></li>+ <li><a href="{% url "dashboard:product-list" %}">{% trans "Products" %}</a></li><li><a href="{% url "dashboard:product-update" pk=product.pk %}#stock">{{ product }}</a></li><li><span class="hide-on-med-and-down">{% trans "Delete stock" %}</span>diff --git a/saleor/dashboard/templates/dashboard/product/stock_form.html b/saleor/dashboard/templates/dashboard/product/stock_form.htmlindex 15376e7cd1..9d14ffb60e 100644--- a/saleor/dashboard/templates/dashboard/product/stock_form.html+++ b/saleor/dashboard/templates/dashboard/product/stock_form.html@@ -20,7 +20,7 @@{% block breadcrumbs %}<ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:products" %}">{% trans "Products" %}</a></li>+ <li><a href="{% url "dashboard:product-list" %}">{% trans "Products" %}</a></li><li><a href="{% url "dashboard:product-update" pk=product.pk %}#stock">{{ product }}</a></li>{% if stock.pk %}<li>{% trans "Stock" %} {{ stock.variant }}</li>diff --git a/saleor/dashboard/templates/dashboard/product/variant_form.html b/saleor/dashboard/templates/dashboard/product/variant_form.htmlindex 6d2f36c75d..f9d41feb55 100644--- a/saleor/dashboard/templates/dashboard/product/variant_form.html+++ b/saleor/dashboard/templates/dashboard/product/variant_form.html@@ -19,7 +19,7 @@{% block breadcrumbs %}<ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:products" %}">{% trans "Products" %}</a></li>+ <li><a href="{% url "dashboard:product-list" %}">{% trans "Products" %}</a></li><li><a href="{% url "dashboard:product-update" pk=product.pk %}#variants">{{ product }}</a></li>{% if variant.pk %}<li>{% trans "Variant" %} {{ variant.sku }}{% if variant.name %} ({{ variant.name }}){% endif %}</li>