Skip to content

Commit

Permalink
Allow cards to unassign members
Browse files Browse the repository at this point in the history
Adds an 'unassign' method to Card, this takes a single member_id and
unassigns the given memebr from the card.
  • Loading branch information
= committed Aug 4, 2015
1 parent 5f2ae86 commit ec6202b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions trello/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ def assign(self, member_id):
http_method='POST',
post_args={'value': member_id})

def unassign(self, member_id):
self.client.fetch_json(
'/cards/' + self.id + '/idMembers/' + member_id,
http_method='DELETE')

def subscribe(self):
self.client.fetch_json(
'/cards/' + self.id + '/subscribed',
Expand Down

0 comments on commit ec6202b

Please sign in to comment.