Fix admin app putting service into research mode

We changed the `update_service` method to only update indivdual
attributes of a service, and only allow it to update specified
attributes: 0cfe10639a

We neglected to specify `research_mode` as one of the allowed
attributes.

This broke the app’s ability to put a service in or out of research
mode.

This commit:
- makes sure the tests cover this eventuality
- fixes the bug by specifying `research_mode` as one of the allowed
  attributes
This commit is contained in:
Chris Hill-Scott
2016-08-23 10:15:22 +01:00
parent 74c0c3e132
commit 0f6a090470
2 changed files with 8 additions and 3 deletions

View File

@@ -89,6 +89,7 @@ class ServiceAPIClient(NotificationsAPIClient):
'restricted',
'email_from',
'reply_to_email_address',
'research_mode',
'sms_sender',
'created_by',
'branding',