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
This commit is contained in:
parent
92a38be9c6
commit
eef2c5f6de
|
@ -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'),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue