Merge pull request #771 from alphagov/fix-missing-template-id

Fix for missing template IDs.
This commit is contained in:
minglis
2016-12-16 14:41:54 +00:00
committed by GitHub
4 changed files with 26 additions and 7 deletions

View File

@@ -682,7 +682,6 @@ class NotificationHistory(db.Model):
@classmethod
def from_notification(cls, notification):
history = cls(**{c.name: getattr(notification, c.name) for c in cls.__table__.columns})
history.template = notification.template
return history
def update_from_notification(self, notification):