From 5916dafd1259cd2d040c51a75825cacb0b990559 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 3 Mar 2019 20:14:00 +0100 Subject: [PATCH] Improve user display in list --- map/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/map/models.py b/map/models.py index ffa87f7..a4d21a1 100644 --- a/map/models.py +++ b/map/models.py @@ -22,6 +22,9 @@ class Friend(AbstractUser): return display_name + def __str__(self): + return self.get_display_name() + class FriendLocation(BaseModel): latitude = CoordinateField()