Added a cancelled notification status so that we can cancel letters before they are sent.

This commit is contained in:
Rebecca Law
2018-07-31 13:52:04 +01:00
parent ff2334937c
commit 19890412c9
2 changed files with 4 additions and 2 deletions

View File

@@ -1034,6 +1034,7 @@ class VerifyCode(db.Model):
return check_hash(cde, self._code)
NOTIFICATION_CANCELLED = 'cancelled'
NOTIFICATION_CREATED = 'created'
NOTIFICATION_SENDING = 'sending'
NOTIFICATION_SENT = 'sent'
@@ -1077,6 +1078,7 @@ NOTIFICATION_STATUS_TYPES_BILLABLE = [
]
NOTIFICATION_STATUS_TYPES = [
NOTIFICATION_CANCELLED,
NOTIFICATION_CREATED,
NOTIFICATION_SENDING,
NOTIFICATION_SENT,