revsys / django-friendship

Django app to manage following and bi-directional friendships
BSD 3-Clause "New" or "Revised" License
763 stars 183 forks source link

Check if Friend request exists #148

Closed scalidas closed 3 years ago

scalidas commented 3 years ago

It would be nice to have a function to check if a friend request exists between two users. It would be like the are_friends method for checking if two users are friends.

jefftriplett commented 3 years ago

Can you explain what this would look like?

In theory, we have the are_frields method (which you mentioned) that is accessible to the Friend model through the Friendship Manager. We could add a helper on the Friend model, but that pass self into that same method call.