Permalink
Browse files

Make sure that ID will not match the first CartItems rule EVERY time …

…("//" was in regex).
  • Loading branch information...
1 parent 2bb2cde commit fd4539942dafe622d3f7a7d183db3d69f95a00c4 @twoolie committed Feb 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 shop/urls/cart.py
View
@@ -13,9 +13,9 @@
name='cart_update'),
# CartItems
- url('^item/(?P<id>[0-9A-Za-z-_.//]+)$', CartItemDetail.as_view(),
+ url('^item/(?P<id>[0-9]+)$', CartItemDetail.as_view(),
name='cart_item'),
- url('^item/(?P<id>[0-9A-Za-z-_.//]+)/delete$',
+ url('^item/(?P<id>[0-9]+)/delete$',
CartItemDetail.as_view(action='delete'),
name='cart_item_delete'),
)

0 comments on commit fd45399

Please sign in to comment.