Ticket #1840: admindocdecoratorfix.diff
File admindocdecoratorfix.diff, 1.0 KB (added by , 18 years ago) |
---|
-
contrib/admin/views/decorators.py
105 105 else: 106 106 return _display_login_form(request, ERROR_MESSAGE) 107 107 108 _checklogin.__name__ = view_func.__name__ 109 _checklogin.__module__ = view_func.__module__ 108 110 return _checklogin -
contrib/auth/decorators.py
15 15 return HttpResponseRedirect('%s?%s=%s' % (login_url, REDIRECT_FIELD_NAME, quote(request.get_full_path()))) 16 16 _checklogin.__doc__ = view_func.__doc__ 17 17 _checklogin.__dict__ = view_func.__dict__ 18 _checklogin.__name__ = view_func.__name__ 19 _checklogin.__module__ = view_func.__module__ 18 20 19 21 return _checklogin 20 22 return _dec