Ticket #10223: admin-pk.diff
File admin-pk.diff, 630 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/sites.py
444 444 # URLs starting with 'r/' are for the "View on site" links. 445 445 elif url.startswith('r/'): 446 446 from django.contrib.contenttypes.views import shortcut 447 return shortcut(request, *url.split('/' )[1:])447 return shortcut(request, *url.split('/', 2)[1:]) 448 448 else: 449 449 if '/' in url: 450 450 return self.model_page(request, *url.split('/', 2))