Ticket #2388: decorators.py.diff
File decorators.py.diff, 574 bytes (added by , 18 years ago) |
---|
-
decorators.py
13 13 if test_func(request.user): 14 14 return view_func(request, *args, **kwargs) 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 _checklogin.__dict__ = view_func.__dict__ 18 _checklogin.__name__ = view_func.__name__ 17 19 return _checklogin 18 20 return _dec 19 21