def post(self, request):
    serializer = RejectUserFollowRequestSerializer(data=request.data, context={'request': request})
    serializer.is_valid(raise_exception=True)
    data = serializer.validated_data
    user_to_reject_follow_request_from_username = data.get('username')
    user = request.user
    with transaction.atomic():
        user.reject_follow_request_from_user_with_username(user_username=user_to_reject_follow_request_from_username)
    return ApiMessageResponse(_('Follow request rejected.'), status=status.HTTP_200_OK)
def post(self, request):
    serializer = RejectUserFollowRequestSerializer(data=request.data, context={'request': request})
    serializer.is_valid(raise_exception=True)
    data = serializer.validated_data
    user_to_reject_follow_request_from_username = data.get('username')
    user = request.user
    with transaction.atomic():
        user.reject_follow_request_from_user_with_username(user_username=user_to_reject_follow_request_from_username)
    return ApiMessageResponse(_('Follow request rejected.'), status=status.HTTP_200_OK)