mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-24 09:58:53 -04:00
allow draft -> broadcasting
we haven't built pending_approval functionality yet
This commit is contained in:
@@ -2178,7 +2178,10 @@ class BroadcastStatusType(db.Model):
|
||||
|
||||
# these are only the transitions we expect to administer via the API code.
|
||||
ALLOWED_STATUS_TRANSITIONS = {
|
||||
DRAFT: {PENDING_APPROVAL},
|
||||
DRAFT: {
|
||||
PENDING_APPROVAL,
|
||||
BROADCASTING, # TODO: Remove me once we have pending approval flow put in properly
|
||||
},
|
||||
PENDING_APPROVAL: {REJECTED, DRAFT, BROADCASTING},
|
||||
REJECTED: {DRAFT, PENDING_APPROVAL},
|
||||
BROADCASTING: {COMPLETED, CANCELLED},
|
||||
|
||||
Reference in New Issue
Block a user