Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2023 -- 'View on site' now works with non-integer primary keys.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3009 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 85ba40f4e24410cf22f7aa2f73e9ca73bf5f5c5c 1 parent c86946f
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/urls.py
2  django/contrib/admin/urls.py
View
@@ -2,7 +2,7 @@
urlpatterns = patterns('',
('^$', 'django.contrib.admin.views.main.index'),
- ('^r/(\d+)/(\d+)/$', 'django.views.defaults.shortcut'),
+ ('^r/(\d+)/(.*)/$', 'django.views.defaults.shortcut'),
('^jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages': 'django.conf'}),
('^logout/$', 'django.contrib.auth.views.logout'),
('^password_change/$', 'django.contrib.auth.views.password_change'),
Please sign in to comment.
Something went wrong with that request. Please try again.