Allow user to save without changing user's role

This commit is contained in:
Montana
2018-09-05 13:51:07 -04:00
parent 1b8233af89
commit 109249d953
4 changed files with 16 additions and 6 deletions

View File

@@ -21,6 +21,10 @@ class User(Base):
first_name = Column(String)
last_name = Column(String)
@property
def role(self):
return self.atat_role.name
@property
def atat_permissions(self):
return self.atat_role.permissions