big commit with letters removal

This commit is contained in:
stvnrlly
2022-12-05 15:33:44 -05:00
parent 92da56fe63
commit 944715ac46
151 changed files with 278 additions and 10116 deletions

View File

@@ -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)