When creating a new NHS org, set default email branding to NHS

This is more appropriate default for that org than gov.uk branding
and will help us with our work to make setting the branding more
self-service.
This commit is contained in:
Pea Tyczynska
2022-04-08 17:39:55 +01:00
parent cf66d7c344
commit b1ed722252
4 changed files with 48 additions and 2 deletions

View File

@@ -502,13 +502,17 @@ def create_service_callback_api(
return service_callback_api
def create_email_branding(colour='blue', logo='test_x2.png', name='test_org_1', text='DisplayName'):
def create_email_branding(
id=None, colour='blue', logo='test_x2.png', name='test_org_1', text='DisplayName'
):
data = {
'colour': colour,
'logo': logo,
'name': name,
'text': text,
}
if id:
data['id'] = id
email_branding = EmailBranding(**data)
dao_create_email_branding(email_branding)