Django

Code

Changeset 6207

Show
Ignore:
Timestamp:
09/14/07 14:28:14 (1 year ago)
Author:
adrian
Message:

newforms-admin: Fixed #5251 -- 'Show in Web' links now work properly again. Thanks, Florian Apolloner

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/newforms-admin/django/contrib/admin/sites.py

    r6072 r6207  
    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)