def put(self, request):
    serializer = RequestToFollowUserSerializer(data=request.data, context={'request': request})
    serializer.is_valid(raise_exception=True)
    data = serializer.validated_data
    user_to_request_to_follow_username = data.get('username')
    user = request.user
    with transaction.atomic():
        follow_request = user.create_follow_request_for_user_with_username(user_to_request_to_follow_username)
    response_serializer = CommonFollowRequestSerializer(follow_request, context={'request': request})
    return Response(response_serializer.data, status=status.HTTP_201_CREATED)
def put(self, request):
    serializer = RequestToFollowUserSerializer(data=request.data, context={'request': request})
    serializer.is_valid(raise_exception=True)
    data = serializer.validated_data
    user_to_request_to_follow_username = data.get('username')
    user = request.user
    with transaction.atomic():
        follow_request = user.create_follow_request_for_user_with_username(user_to_request_to_follow_username)
    response_serializer = CommonFollowRequestSerializer(follow_request, context={'request': request})
    return Response(response_serializer.data, status=status.HTTP_201_CREATED)