Permalink
Browse files

Merge pull request #144 from twoolie/patch-1

Make sure that CartItem urls will not match the first rule EVERY time
  • Loading branch information...
2 parents 02964e8 + fd45399 commit b709ccf7916d0e069b4a5308c67c368741ed7764 @chrisglass chrisglass 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 b709ccf

Please sign in to comment.