Skip to content

Commit 4527408

Browse files
Merge pull request intercom#200 from intercom/gabriel/fix_users_in_companies_return
Return 'user.User' when listing all of the users of a company
2 parents 96235c6 + 97f34b8 commit 4527408

File tree

1 file changed

+2
-2
lines changed
  • intercom/extended_api_operations

1 file changed

+2
-2
lines changed

intercom/extended_api_operations/users.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
"""Operation to return all users for a particular Company."""
33

4-
from intercom import utils
4+
from intercom import utils, user
55
from intercom.collection_proxy import CollectionProxy
66

77

@@ -14,4 +14,4 @@ def users(self, id):
1414
self.collection_class)
1515
finder_url = "/%s/%s/users" % (collection, id)
1616
return CollectionProxy(
17-
self.client, self.collection_class, "users", finder_url)
17+
self.client, user.User, "users", finder_url)

0 commit comments

Comments
 (0)