mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user