move user edit routes into their own module and blueprint

This commit is contained in:
dandds
2018-10-15 11:06:04 -04:00
parent 8ea99a7aa5
commit e7a117be33
6 changed files with 28 additions and 21 deletions

View File

@@ -52,3 +52,10 @@ class User(Base, mixins.TimestampsMixin, mixins.AuditableMixin):
self.has_workspaces,
self.id,
)
def to_dictionary(self):
return {
c.name: getattr(self, c.name)
for c in self.__table__.columns
if c.name not in ["id"]
}