mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
newforms-admin: Fixed #5251 -- 'Show in Web' links now work properly again. Thanks, Florian Apolloner
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d5ed482d60
commit
337f19828f
@ -123,6 +123,10 @@ class AdminSite(object):
|
|||||||
return self.password_change_done(request)
|
return self.password_change_done(request)
|
||||||
elif url == 'jsi18n':
|
elif url == 'jsi18n':
|
||||||
return self.i18n_javascript(request)
|
return self.i18n_javascript(request)
|
||||||
|
# urls starting with 'r/' are for the "show in web" links
|
||||||
|
elif url.startswith('r/'):
|
||||||
|
from django.views.defaults import shortcut
|
||||||
|
return shortcut(request, *url.split('/')[1:])
|
||||||
else:
|
else:
|
||||||
match = USER_CHANGE_PASSWORD_URL_RE.match(url)
|
match = USER_CHANGE_PASSWORD_URL_RE.match(url)
|
||||||
if match:
|
if match:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user