persist created_by_id when using the one off notification endpoint

This commit is contained in:
Leo Hemsted
2017-06-16 16:30:03 +01:00
parent 729faf579d
commit a1e570dea7
5 changed files with 71 additions and 49 deletions

View File

@@ -95,6 +95,11 @@ class User(db.Model):
platform_admin = db.Column(db.Boolean, nullable=False, default=False)
current_session_id = db.Column(UUID(as_uuid=True), nullable=True)
services = db.relationship(
'Service',
secondary='user_to_service',
backref=db.backref('user_to_service', lazy='dynamic'))
@property
def password(self):
raise AttributeError("Password not readable")