From d993387216a37920e4f0f8366836100c61a247f7 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Fri, 11 Sep 2020 22:43:03 +0200 Subject: [PATCH] Fixed text repr of Explorer model due to user model change. --- lostplaces/lostplaces_app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lostplaces/lostplaces_app/models.py b/lostplaces/lostplaces_app/models.py index 4df6736..b40462b 100644 --- a/lostplaces/lostplaces_app/models.py +++ b/lostplaces/lostplaces_app/models.py @@ -33,7 +33,7 @@ class Explorer(models.Model): ) def __str__(self): - return self.user.name + return self.user.username @receiver(post_save, sender=User) def create_user_profile(sender, instance, created, **kwargs):