Send api the broadcast provider restriction of 'all', not 'None'

We're replacing the value of None with the value of all. API has been
updated to accept both values
(1767535def)
so this change starts sending notifications-api the value of "all".
This commit is contained in:
Katie Smith
2021-05-10 12:35:11 +01:00
parent a270d631e7
commit 2f9e2dbc9d
2 changed files with 3 additions and 3 deletions

View File

@@ -2334,7 +2334,7 @@ class ServiceBroadcastAccountTypeField(GovukRadiosField):
split_values = self.data.split("-")
self.service_mode = split_values[0]
self.broadcast_channel = split_values[1]
self.provider_restriction = split_values[2] if len(split_values) == 3 else None
self.provider_restriction = split_values[2] if len(split_values) == 3 else 'all'
class ServiceBroadcastAccountTypeForm(StripWhitespaceForm):