repr role as self.name
This commit is contained in:
parent
8ee8025046
commit
876d6c1069
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ class Role(db.Model):
|
|||
db.session.commit()
|
||||
|
||||
def __repr__(self):
|
||||
return '<Role %r>' % self.name
|
||||
#return '<Role %r>' % self.name
|
||||
return self.name
|
||||
|
||||
class User(db.Model, UserMixin):
|
||||
__tablename__ = 'users'
|
||||
|
|
Loading…
Reference in a new issue