remove organisation from api

This commit is contained in:
Leo Hemsted
2018-02-07 11:39:33 +00:00
parent 80b3ca8a55
commit ba20010f27
7 changed files with 17 additions and 119 deletions

View File

@@ -184,11 +184,6 @@ def update_service(service_id):
if org_type:
service.crown = org_type == 'central'
# TODO: remove this block after admin is updated to refer to email branding
if 'organisation' in req_json:
org_id = req_json['organisation']
service.email_branding = None if not org_id else EmailBranding.query.get(org_id)
if 'email_branding' in req_json:
email_branding_id = req_json['email_branding']
service.email_branding = None if not email_branding_id else EmailBranding.query.get(email_branding_id)