only set organisation on GET and add allowed fields to service client

we were overwriting it before validating the form for POST, so lost info
This commit is contained in:
Leo Hemsted
2016-08-12 12:37:18 +01:00
parent 7c16614538
commit fb510d2522
3 changed files with 12 additions and 5 deletions

View File

@@ -90,7 +90,9 @@ class ServiceAPIClient(NotificationsAPIClient):
'email_from',
'reply_to_email_address',
'sms_sender',
'created_by'
'created_by',
'branding',
'organisation_id'
}
if disallowed_attributes:
raise TypeError('Not allowed to update service attributes: {}'.format(