def argument_request_user(obj, func_name):
    """Pass request.user as an argument to the given function call."""
    func = getattr(obj, func_name)
    request = threadlocals.request()
    if request:
        return func(request.user)
def argument_request_user ( obj , func_name ) : func = getattr ( obj , func_name ) request = threadlocals . request ( ) if request : return func ( request . user )
Pass request.user as an argument to the given function call.