-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the send_friend_request method uses Q objects to ensure that there is…
… no existing pending friend request between the two users. If a pending request exists and it was sent by the current user, it cancels the request by deleting it. If the request was sent by the other user, it informs the current user that there is already a pending request from the other user. This way, the system handles both sending and canceling friend requests efficiently.I still need to work on cancel_friend_request function
- Loading branch information
Showing
1 changed file
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters