mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-02 16:21:32 -08:00
fixes #7
This commit is contained in:
parent
c169e6b5d1
commit
79dddeb6fa
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ class User(UserMixin, db.Model):
|
|||
roles = db.relationship('Role', secondary=user_role, lazy='dynamic', cascade="all, delete")
|
||||
|
||||
def __repr__(self):
|
||||
return '<User {}>'.format(self.user_name)
|
||||
return '<User {}_{}>'.format(self.user_name, self.id)
|
||||
|
||||
def set_password(self, password):
|
||||
self.password_hash = generate_password_hash(password)
|
||||
|
|
Loading…
Add table
Reference in a new issue