Refactor code + fix a small bug

This commit is contained in:
cuom1999 2021-11-22 21:54:48 -06:00
parent d0dbb3a887
commit e1f19fb794
3 changed files with 14 additions and 12 deletions

View file

@ -262,7 +262,7 @@ class Friend(models.Model):
try:
ret = self.objects.get(current_user=current_user).users.all()
except Friend.DoesNotExist:
ret = []
ret = Profile.objects.none()
return ret
def __str__(self):