Commits

jonashaag  committed be48c15

Made an admin URL pattern compatible with non-integer primary keys.

  • Participants
  • Parent commits a00d2bc

Comments (0)

Files changed (1)

File django/contrib/admin/sites.py

             url(r'^jsi18n/$',
                 wrap(self.i18n_javascript, cacheable=True),
                 name='jsi18n'),
-            url(r'^r/(?P<content_type_id>\d+)/(?P<object_id>.+)/$',
+            url(r'^r/(?P<content_type_id>[a-z\d]+)/(?P<object_id>.+)/$',
                 wrap(contenttype_views.shortcut)),
             url(r'^(?P<app_label>\w+)/$',
                 wrap(self.app_index),