mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 05:28:49 -04:00
Merge pull request #771 from alphagov/fix-missing-template-id
Fix for missing template IDs.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user