Ticket #10223: admin-pk.diff

File admin-pk.diff, 630 bytes (added by HuCy, 16 years ago)
  • django/contrib/admin/sites.py

     
    444444        # URLs starting with 'r/' are for the "View on site" links.
    445445        elif url.startswith('r/'):
    446446            from django.contrib.contenttypes.views import shortcut
    447             return shortcut(request, *url.split('/')[1:])
     447            return shortcut(request, *url.split('/', 2)[1:])
    448448        else:
    449449            if '/' in url:
    450450                return self.model_page(request, *url.split('/', 2))
Back to Top