Added a method to decide which colour to send to the notifications-utils HTMLEmailTemplate to create the content.

This commit is contained in:
Rebecca Law
2018-08-22 12:59:06 +01:00
parent 0b0e551626
commit fd16d7060a
3 changed files with 52 additions and 9 deletions

View File

@@ -77,7 +77,8 @@ def create_service(
email_from=None,
prefix_sms=True,
message_limit=1000,
organisation_type='central'
organisation_type='central',
branding=None
):
service = Service(
name=service_name,
@@ -86,7 +87,8 @@ def create_service(
email_from=email_from if email_from else service_name.lower().replace(' ', '.'),
created_by=user or create_user(email='{}@digital.cabinet-office.gov.uk'.format(uuid.uuid4())),
prefix_sms=prefix_sms,
organisation_type=organisation_type
organisation_type=organisation_type,
branding=branding
)
dao_create_service(service, service.created_by, service_id, service_permissions=service_permissions)