When the organisation updates the crown attribute it should update all the services associated with that organisation too.

This commit is contained in:
Rebecca Law
2020-09-09 10:43:16 +01:00
parent a9168d38a7
commit 795a035fac
2 changed files with 17 additions and 0 deletions

View File

@@ -89,6 +89,9 @@ def dao_update_organisation(organisation_id, **kwargs):
if 'organisation_type' in kwargs:
_update_organisation_services(organisation, 'organisation_type', only_where_none=False)
if 'crown' in kwargs:
_update_organisation_services(organisation, 'crown', only_where_none=False)
if 'email_branding_id' in kwargs:
_update_organisation_services(organisation, 'email_branding')