def post(self, request):
    request_data = _prepare_request_data_for_validation(request.data)
    user = request.user
    serializer = UpdateFollowSerializer(data=request_data)
    serializer.is_valid(raise_exception=True)
    data = serializer.validated_data
    lists_ids = data.get('lists_ids')
    followed_user_username = data.get('username')
    User = get_user_model()
    followed_user = User.objects.get(username=followed_user_username)
    with transaction.atomic():
        follow = user.update_follow_for_user_with_id(followed_user.pk, lists_ids=lists_ids)
    response_serializer = FollowSerializer(follow, context={'request': request})
    return Response(response_serializer.data, status=status.HTTP_200_OK)
def post(self, request):
    request_data = _prepare_request_data_for_validation(request.data)
    user = request.user
    serializer = UpdateFollowSerializer(data=request_data)
    serializer.is_valid(raise_exception=True)
    data = serializer.validated_data
    lists_ids = data.get('lists_ids')
    followed_user_username = data.get('username')
    User = get_user_model()
    followed_user = User.objects.get(username=followed_user_username)
    with transaction.atomic():
        follow = user.update_follow_for_user_with_id(followed_user.pk, lists_ids=lists_ids)
    response_serializer = FollowSerializer(follow, context={'request': request})
    return Response(response_serializer.data, status=status.HTTP_200_OK)