misc: add string representation to user objects (#45907)
This commit is contained in:
parent
2ea9dc104d
commit
ecf389722f
|
@ -92,6 +92,9 @@ class User(StorableObject):
|
|||
return _('Unknown User')
|
||||
display_name = property(get_display_name)
|
||||
|
||||
def __str__(self):
|
||||
return self.display_name
|
||||
|
||||
@property
|
||||
def nameid(self):
|
||||
return self.name_identifiers[0] if self.name_identifiers else None
|
||||
|
|
Loading…
Reference in New Issue