Merge pull request #2407 from alphagov/return-domains-for-org

Return an organisation’s domains and fix a bug where the domains were getting wiped when updating other attributes
This commit is contained in:
Chris Hill-Scott
2019-03-22 16:07:15 +00:00
committed by GitHub
3 changed files with 83 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ def dao_create_organisation(organisation):
@transactional
def dao_update_organisation(organisation_id, **kwargs):
domains = kwargs.pop('domains', [])
domains = kwargs.pop('domains', None)
organisation = Organisation.query.filter_by(id=organisation_id).update(
kwargs