Skip to content

Commit

Permalink
include property to retrieve waitlisted members.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikefranklin committed Sep 14, 2016
1 parent b60621d commit 0d7732a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pinax/teams/models.py
Expand Up @@ -90,6 +90,10 @@ def declines(self):
def rejections(self):
return self.memberships.filter(state=BaseMembership.STATE_REJECTED)

@property
def waitlisted(self):
return self.memberships.filter(state=BaseMembership.STATE_WAITLISTED)

@property
def acceptances(self):
return self.memberships.filter(state__in=[
Expand Down

0 comments on commit 0d7732a

Please sign in to comment.