mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 18:37:33 -04:00
Sort allowed attributes alphabetically
This commit is contained in:
@@ -79,32 +79,32 @@ class ServiceAPIClient(NotifyAdminAPIClient):
|
|||||||
"""
|
"""
|
||||||
data = _attach_current_user(kwargs)
|
data = _attach_current_user(kwargs)
|
||||||
disallowed_attributes = set(data.keys()) - {
|
disallowed_attributes = set(data.keys()) - {
|
||||||
'name',
|
|
||||||
'message_limit',
|
|
||||||
'active',
|
'active',
|
||||||
'restricted',
|
'consent_to_research',
|
||||||
|
'contact_link',
|
||||||
|
'count_as_live',
|
||||||
|
'created_by',
|
||||||
|
'email_branding',
|
||||||
'email_from',
|
'email_from',
|
||||||
|
'free_sms_fragment_limit',
|
||||||
|
'go_live_at',
|
||||||
|
'go_live_user',
|
||||||
|
'letter_branding',
|
||||||
|
'letter_contact_block',
|
||||||
|
'message_limit',
|
||||||
|
'name',
|
||||||
|
'notes',
|
||||||
|
'organisation_type',
|
||||||
|
'permissions',
|
||||||
|
'prefix_sms',
|
||||||
|
'rate_limit',
|
||||||
'reply_to_email_address',
|
'reply_to_email_address',
|
||||||
'research_mode',
|
'research_mode',
|
||||||
|
'restricted',
|
||||||
'sms_sender',
|
'sms_sender',
|
||||||
'created_by',
|
|
||||||
'letter_branding',
|
|
||||||
'email_branding',
|
|
||||||
'letter_contact_block',
|
|
||||||
'permissions',
|
|
||||||
'organisation_type',
|
|
||||||
'free_sms_fragment_limit',
|
|
||||||
'prefix_sms',
|
|
||||||
'contact_link',
|
|
||||||
'volume_email',
|
'volume_email',
|
||||||
'volume_sms',
|
|
||||||
'volume_letter',
|
'volume_letter',
|
||||||
'consent_to_research',
|
'volume_sms',
|
||||||
'count_as_live',
|
|
||||||
'go_live_user',
|
|
||||||
'go_live_at',
|
|
||||||
'rate_limit',
|
|
||||||
'notes'
|
|
||||||
}
|
}
|
||||||
if disallowed_attributes:
|
if disallowed_attributes:
|
||||||
raise TypeError('Not allowed to update service attributes: {}'.format(
|
raise TypeError('Not allowed to update service attributes: {}'.format(
|
||||||
|
|||||||
Reference in New Issue
Block a user