Skip to content

Commit

Permalink
[Fix] accept, friends backend done
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarm committed May 5, 2024
1 parent 8a7fd50 commit 4ccf27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/back-end/dashboards/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def post(self, request):
try:

friendship = Friendship.objects.create(user_from=user_from, user_to=user_add,
is_accepted = True)
is_accepted = False)
friendship.save()
return Response({'success': 'Friendship Added'}, status=status.HTTP_200_OK)
except Friendship.DoesNotExist:
Expand Down

0 comments on commit 4ccf27c

Please sign in to comment.