fix url regex for product_detail
This commit is contained in:
parent
571e4175e8
commit
5f4889e132
|
@ -13,7 +13,7 @@ urlpatterns = [
|
||||||
#name='epay_callback'
|
#name='epay_callback'
|
||||||
#),
|
#),
|
||||||
url(r'$', ShopIndexView.as_view(), name='index'),
|
url(r'$', ShopIndexView.as_view(), name='index'),
|
||||||
url(r'products/(?P<pk>[0-9]+)/$', ProductDetailView.as_view(), name='product_detail'),
|
url(r'products/(?P<pk>[a-zA-Z0-9\-]+)/$', ProductDetailView.as_view(), name='product_detail'),
|
||||||
url(r'orders/(?P<pk>[0-9]+)/$', OrderDetailView.as_view(), name='order_detail'),
|
url(r'orders/(?P<pk>[0-9]+)/$', OrderDetailView.as_view(), name='order_detail'),
|
||||||
url(r'orders/(?P<pk>[0-9]+)/checkout/$', CheckoutView.as_view(), name='checkout'),
|
url(r'orders/(?P<pk>[0-9]+)/checkout/$', CheckoutView.as_view(), name='checkout'),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue