From eef2c5f6dea6ad06f064d46292d2f21ebebaf839 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 7 Apr 2009 19:40:59 +0000 Subject: [PATCH] Fixed #9956: relax the URL pattern for primary keys in the comment redirect so that models with custom PKs aren't cut out of the loop. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10422 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/comments/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/comments/urls.py b/django/contrib/comments/urls.py index ae0b7ff1e8..5caef9c7d4 100644 --- a/django/contrib/comments/urls.py +++ b/django/contrib/comments/urls.py @@ -13,6 +13,6 @@ urlpatterns = patterns('django.contrib.comments.views', ) 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'), )