When updating org type to NHS type also update email branding if none set

This commit is contained in:
Pea Tyczynska
2022-04-12 17:18:57 +01:00
parent b1ed722252
commit 769b71cdc0
3 changed files with 87 additions and 8 deletions

View File

@@ -675,6 +675,7 @@ def create_organisation(
billing_contact_names=None,
billing_contact_email_addresses=None,
billing_reference=None,
email_branding_id=None,
):
data = {
'id': organisation_id,
@@ -685,6 +686,7 @@ def create_organisation(
'billing_contact_names': billing_contact_names,
'billing_contact_email_addresses': billing_contact_email_addresses,
'billing_reference': billing_reference,
'email_branding_id': email_branding_id
}
organisation = Organisation(**data)
dao_create_organisation(organisation)