Slight (bad) hack to ensure that the ticks appear on the manage user page

- changes imports for utils from broken version on previous branch
This commit is contained in:
Martyn Inglis
2016-03-01 10:45:13 +00:00
parent f0b5ac9ceb
commit 7b5e8061e2
11 changed files with 193 additions and 192 deletions

View File

@@ -1,5 +1,6 @@
from notifications_python_client.base import BaseAPIClient
from app.notify_client.models import User
class InviteApiClient(BaseAPIClient):
@@ -26,4 +27,4 @@ class InviteApiClient(BaseAPIClient):
def get_invites_for_service(self, service_id):
endpoint = '/service/{}/invite'.format(service_id)
resp = self.get(endpoint)
return resp['data']
return [User(data) for data in resp['data']]