Revised the string representation of a user in the Mia core application.

This commit is contained in:
依瑪貓 2020-08-09 20:27:05 +08:00
parent 31b9590a7a
commit 227068e9be

View File

@ -110,7 +110,7 @@ class User(DirtyFieldsMixin, models.Model):
def __str__(self): def __str__(self):
"""Returns the string representation of this user.""" """Returns the string representation of this user."""
return "%s(%s)" % ( return "%s (%s)" % (
self.name.__str__(), self.login_id.__str__()) self.name.__str__(), self.login_id.__str__())
class Meta: class Meta: