make sure we update both statuses when updating notification history

This commit is contained in:
Leo Hemsted
2017-05-09 11:09:16 +01:00
parent 7e52fa4d13
commit 4ff4717fdf
2 changed files with 24 additions and 7 deletions

View File

@@ -895,6 +895,10 @@ class NotificationHistory(db.Model, HistoryModel):
history.status = notification.status
return history
def update_from_original(self, original):
super().update_from_original(original)
self.status = original.status
@hybrid_property
def status(self):
return self._status_enum