Permalink
Browse files

[1.0.X] Fixed #9956: relax the URL pattern for primary keys in the co…

…mment redirect so that models with custom PKs aren't cut out of the loop. Backport of r10422 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10423 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 503b3ca commit f78c70b3b21cb28ce77b674706bb64b297ab0649 @jacobian jacobian committed Apr 7, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/comments/urls.py
@@ -13,6 +13,6 @@
)
urlpatterns += patterns('',
- url(r'^cr/(\d+)/(\w+)/$', 'django.views.defaults.shortcut', name='comments-url-redirect'),
+ url(r'^cr/(\d+)/(.+)/$', 'django.views.defaults.shortcut', name='comments-url-redirect'),
)

0 comments on commit f78c70b

Please sign in to comment.