Ticket #5251: show_in_web.diff

File show_in_web.diff, 677 bytes (added by Florian Apolloner, 17 years ago)

Shorter and better patch :)

  • django/contrib/admin/sites.py

     
    123123            return self.password_change_done(request)
    124124        elif url == 'jsi18n':
    125125            return self.i18n_javascript(request)
     126        # urls starting with 'r/' are for the "show in web" links
     127        elif url.startswith('r/'):
     128            from django.views.defaults import shortcut
     129            return shortcut(request, *url.split('/')[1:])
    126130        else:
    127131            match = USER_CHANGE_PASSWORD_URL_RE.match(url)
    128132            if match:
Back to Top