Allow provider_restriction to be None or "all"

Until all the data is updated to always be "all", we have to handle the
case of provider_restriction being set to None or "all" (which mean the
same thing).

The code can be tidied up once the broadcast provider_restriction is never None.
This commit is contained in:
Katie Smith
2021-05-10 14:35:18 +01:00
parent 2f9e2dbc9d
commit 3485475270
6 changed files with 37 additions and 4 deletions

View File

@@ -623,7 +623,7 @@ class ServiceAPIClient(NotifyAdminAPIClient):
"""
service_mode is one of "training" or "live"
broadcast channel is one of "test" or "severe"
provider_restriction is one of None, "three", "o2", "vodafone", "ee"
provider_restriction is one of "all", "three", "o2", "vodafone", "ee"
"""
data = {
"service_mode": service_mode,