fix url regex for product_detail

This commit is contained in:
Thomas Steen Rasmussen 2016-05-14 16:11:08 +02:00
parent 571e4175e8
commit 5f4889e132

View file

@ -13,7 +13,7 @@ urlpatterns = [
#name='epay_callback'
#),
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]+)/checkout/$', CheckoutView.as_view(), name='checkout'),
]