mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
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:
@@ -2321,7 +2321,7 @@ class ServiceBroadcastAccountTypeField(GovukRadiosField):
|
||||
if broadcast_channel:
|
||||
account_type = "live" if live else "training"
|
||||
account_type += f"-{broadcast_channel}"
|
||||
if allowed_broadcast_provider:
|
||||
if allowed_broadcast_provider and allowed_broadcast_provider != 'all':
|
||||
account_type += f"-{allowed_broadcast_provider}"
|
||||
|
||||
self.data = account_type
|
||||
|
||||
Reference in New Issue
Block a user