You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Friendship model doesn't check to see if from_user is the
same as to_user when saving. This allows the creation of friendships with
oneself.
To fix it, I've added a custom save() method:
def save(self):
if self.to_user == self.from_user:
return
else:
super(Friendship, self).save()
The text was updated successfully, but these errors were encountered:
http://code.google.com/p/django-friends/issues/detail?id=3
The text was updated successfully, but these errors were encountered: