Allow rate limit to be updated

This bit of code is just a safety check to make sure we don’t
inadvertently updating something we shouldn’t (see
0cfe10639a for context).

`rate_limit` is something we allow the admin app to update now (as of
939029a9be).
This commit is contained in:
Chris Hill-Scott
2020-10-23 13:00:28 +01:00
parent 57fc209f44
commit d930c885e7

View File

@@ -107,7 +107,8 @@ class ServiceAPIClient(NotifyAdminAPIClient):
'consent_to_research',
'count_as_live',
'go_live_user',
'go_live_at'
'go_live_at',
'rate_limit',
}
if disallowed_attributes:
raise TypeError('Not allowed to update service attributes: {}'.format(