mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(models.user): add User.__str__ -> User.Username
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
67dd432e86
commit
278490e103
1 changed files with 3 additions and 0 deletions
|
@ -254,6 +254,9 @@ class User(Base):
|
|||
return "<User(ID='%s', AccountType='%s', Username='%s')>" % (
|
||||
self.ID, str(self.AccountType), self.Username)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.Username
|
||||
|
||||
|
||||
def generate_resetkey():
|
||||
return util.make_random_string(32)
|
||||
|
|
Loading…
Add table
Reference in a new issue