Fixed text repr of Explorer model due to user model change.

This commit is contained in:
Marcus Scholz 2020-09-11 22:43:03 +02:00
parent aed2856df3
commit d993387216

View File

@ -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):