Skip to content

Commit

Permalink
Add missing initials for members of an organization (fixes #176)
Browse files Browse the repository at this point in the history
Unless a filter is supplied, the list of members for an organization
will only include the member full name and username.  This means that a
list of member objects created from an organization will lack data in the
'initials' field that would exist if the member object were created by id.
  • Loading branch information
Robert C Jennings committed Jan 16, 2017
1 parent ad104a5 commit 86ef2f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trello/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ def get_board(self, field_name):
def get_members(self):
json_obj = self.client.fetch_json(
'/organizations/' + self.id + '/members',
query_params={'filter': 'all'})
query_params={'filter': 'all',
'fields': 'id,fullName,username,initials'})
return [Member.from_json(trello_client=self.client, json_obj=obj) for obj in json_obj]

0 comments on commit 86ef2f0

Please sign in to comment.