Skip to content

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

Add missing trailing slashes

Marcin Gębaladda2d4a50563
diff --git a/saleor/dashboard/customer/urls.py b/saleor/dashboard/customer/urls.py
index 8e787015b5..ee4b021309 100644
--- a/saleor/dashboard/customer/urls.py
+++ b/saleor/dashboard/customer/urls.py
@@ -4,5 +4,5 @@ from . import views
urlpatterns = patterns(
'',
url(r'^$', views.customer_list, name='customers'),
- url(r'^(?P<pk>[0-9]+)$', views.customer_details, name='customer-details')
+ url(r'^(?P<pk>[0-9]+)/$', views.customer_details, name='customer-details')
)
diff --git a/saleor/dashboard/order/urls.py b/saleor/dashboard/order/urls.py
index 492fce866f..89c15798df 100644
--- a/saleor/dashboard/order/urls.py
+++ b/saleor/dashboard/order/urls.py
@@ -4,16 +4,16 @@ from . import views
urlpatterns = patterns(
'',
url(r'^$', views.OrderListView.as_view(), name='orders'),
- url(r'^(?P<pk>[0-9]+)$',
+ url(r'^(?P<pk>[0-9]+)/$',
views.order_details, name='order-details'),
- url(r'^(?P<order_pk>[0-9]+)/address-billing$',
+ url(r'^(?P<order_pk>[0-9]+)/address-billing/$',
views.address_view, name='address-billing-edit'),
- url(r'^(?P<order_pk>[0-9]+)/address-shipping/(?P<group_pk>[0-9]+)$',
+ url(r'^(?P<order_pk>[0-9]+)/address-shipping/(?P<group_pk>[0-9]+)/$',
views.address_view, name='address-shipping-edit'),
- url(r'^(?P<pk>[0-9]+)/payment$',
+ url(r'^(?P<pk>[0-9]+)/payment/$',
views.manage_payment, name='manage-payment'),
- url(r'^line/(?P<pk>[0-9]+)$', views.edit_order_line,
+ url(r'^line/(?P<pk>[0-9]+)/$', views.edit_order_line,
name='order-line-edit'),
- url(r'^ship/(?P<pk>[0-9]+)$', views.ship_delivery_group,
+ url(r'^ship/(?P<pk>[0-9]+)/$', views.ship_delivery_group,
name='ship-delivery-group')
)
diff --git a/saleor/dashboard/product/urls.py b/saleor/dashboard/product/urls.py
index aa3cae105c..b15df18ee6 100644
--- a/saleor/dashboard/product/urls.py
+++ b/saleor/dashboard/product/urls.py
@@ -7,7 +7,7 @@ urlpatterns = patterns(
views.product_list, name='products'),
url(r'^(?P<pk>[0-9]+)/update/$',
views.product_details, name='product-update'),
- url(r'^add/(?P<category>[-\w]+)$',
+ url(r'^add/(?P<category>[-\w]+)/$',
views.product_details, name='product-add'),
url(r'^(?P<pk>[0-9]+)/delete/$',
views.ProductDeleteView.as_view(), name='product-delete'),)