Work in progress: Continue on org view

This commit is contained in:
Joseph Schorr 2013-11-04 16:51:25 -05:00
parent 17a07ea6e0
commit b56bb92801
4 changed files with 18 additions and 5 deletions

View file

@ -279,8 +279,7 @@ def get_organization_team_members(teamid):
def get_teams_within_org(organization):
joined = Team.select().join(TeamMember)
return joined.where(Team.organization == organization)
return Team.select().where(Team.organization == organization)
def get_user_teams_within_org(username, organization):