Revert "Revert "1/4 Stop updating old Notification status column""

This commit is contained in:
Imdad Ahad
2017-07-04 14:30:00 +01:00
committed by Imdad Ahad
parent 4b2388acaa
commit ac9eb29707
3 changed files with 12 additions and 44 deletions

View File

@@ -819,12 +819,11 @@ class Notification(db.Model):
@hybrid_property
def status(self):
return self._status_enum
return self._status_fkey
@status.setter
def status(self, status):
self._status_fkey = status
self._status_enum = status
@property
def personalisation(self):
@@ -1030,12 +1029,11 @@ class NotificationHistory(db.Model, HistoryModel):
@hybrid_property
def status(self):
return self._status_enum
return self._status_fkey
@status.setter
def status(self, status):
self._status_fkey = status
self._status_enum = status
INVITED_USER_STATUS_TYPES = ['pending', 'accepted', 'cancelled']