Ticket #2388: decorators.py.diff

File decorators.py.diff, 574 bytes (added by derekgr@…, 18 years ago)

Patch to decorators.py.

  • decorators.py

     
    1313            if test_func(request.user):
    1414                return view_func(request, *args, **kwargs)
    1515            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__
    1719        return _checklogin
    1820    return _dec
    1921
Back to Top