mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 08:31:00 -04:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user