mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
big commit with letters removal
This commit is contained in:
@@ -20,23 +20,3 @@ def get_email_choices(service):
|
||||
and service.email_branding_name.lower() != f'GOV.UK and {service.organisation.name}'.lower()
|
||||
):
|
||||
yield ('govuk_and_org', f'GOV.UK and {service.organisation.name}')
|
||||
|
||||
|
||||
def get_letter_choices(service):
|
||||
organisation_branding_id = service.organisation.letter_branding_id if service.organisation else None
|
||||
|
||||
# if (
|
||||
# service.organisation_type in Organisation.NHS_TYPES
|
||||
# and service.letter_branding_name != 'NHS'
|
||||
# ):
|
||||
# yield ('nhs', 'NHS')
|
||||
|
||||
if (
|
||||
service.organisation
|
||||
# and service.organisation_type not in Organisation.NHS_TYPES
|
||||
and (
|
||||
service.letter_branding_id is None # GOV.UK is current branding
|
||||
or service.letter_branding_id != organisation_branding_id
|
||||
)
|
||||
):
|
||||
yield ('organisation', service.organisation.name)
|
||||
|
||||
Reference in New Issue
Block a user