-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is can_request_send method correct? #86
Comments
I recommend to use parentheses because it's not clear what Also, maybe |
In this case maybe you should just remove |
I'm also not sure if this code is correct. |
It should be
And
Pardon formatting errors I'm on my phone If somebody with write rights sees this maybe he can do the commit |
Is this library still maintained? |
Last commit more than 3 months ago. But I'm not sure. |
@hisyatokaku yes the method is correct. I just refactored it a bit to make it slightly more clear. |
The code below seems to check if request can be sent from 'from_user' to 'to_user'
The method returns False when the request from 'from_user' to 'to_user' has NOT been made yet, which seems to be opposite.
Should
is False
be changed tois True
?https://github.com/revsys/django-friendship/blob/master/friendship/models.py
The text was updated successfully, but these errors were encountered: