Refactor code + fix a small bug
This commit is contained in:
parent
d0dbb3a887
commit
e1f19fb794
3 changed files with 14 additions and 12 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue