Пример #1
0
 def n_users(self):
     return TeamUserRelationship.count(team_id=self.id)
Пример #2
0
 def n_owners(self):
     return TeamUserRelationship.count(team_id=self.id, identity=TEAM_OWNER)