send emails when MOU is signed

we build up one personalisation dict, and then pass it in to all the
different templates - so be careful editing things. also of note, we
check if the agreement_signed_on_behalf_of is set, and send a different
template with slightly different wording to the person who clicked the
confirm button.
This commit is contained in:
Leo Hemsted
2019-07-09 11:59:33 +01:00
parent 3e11d2492a
commit 07bb0f0332
3 changed files with 77 additions and 1 deletions

View File

@@ -346,6 +346,7 @@ class Organisation(db.Model):
db.ForeignKey('users.id'),
nullable=True,
)
agreement_signed_by = db.relationship('User')
agreement_signed_on_behalf_of_name = db.Column(db.String(255), nullable=True)
agreement_signed_on_behalf_of_email_address = db.Column(db.String(255), nullable=True)
agreement_signed_version = db.Column(db.Float, nullable=True)