(sender, **kwargs)
return (drf_request_user, 0)
Provider a signal handler to return the current user from the current
    request when using Django REST Framework. Requires that the APIView set
    drf_request on the underlying Django Request object.
Provider a signal handler to return the current user from the current
    request when using Django REST Framework. Requires that the APIView set
    drf_request on the underlying Django Request object.
Provider a signal handler to return the current user from the current request when using Django REST Framework . Requires that the APIView set drf_request on the underlying Django Request object .
def get_current_user_from_drf_request(sender, **kwargs):
    """
    Provider a signal handler to return the current user from the current
    request when using Django REST Framework. Requires that the APIView set
    drf_request on the underlying Django Request object.
    """
    request = get_current_request()
    drf_request_user = getattr(request, 'drf_request_user', False)
    return (drf_request_user, 0)
def get_current_user_from_drf_request ( sender , * * kwargs ) : request = get_current_request ( ) drf_request_user = getattr ( request , 'drf_request_user' , False ) return ( drf_request_user , 0 )