diff --git a/friends/views.py b/friends/views.py index c9a7f4b..bb69907 100644 --- a/friends/views.py +++ b/friends/views.py @@ -72,8 +72,7 @@ def friends(request): # friends_list if request.method == "GET": try: - # user = request.user - user = User.objects.get(id=21) + user = request.user friend_request = FriendRequest.objects.filter(to_user=user, state="pending") friend_request_serialized = FriendRequestSerializer( @@ -271,8 +270,7 @@ def friends(request): @api_view(["GET"]) def friend_recommend(request): try: - # user = request.user - user = User.objects.get(id=21) + user = request.user user_restaurants = set( UserRestaurantsList.objects.filter(user=user).values_list(