Finish up create team

This commit is contained in:
Joseph Schorr 2013-11-05 17:20:43 -05:00
parent a3970fa75c
commit 237614dcef
6 changed files with 101 additions and 12 deletions

View file

@ -329,7 +329,8 @@ def update_organization_team(orgname, teamname):
description = json['description'] if 'description' in json else ''
role = json['role'] if 'role' in json else 'member'
team = model.create_team(teamname, orgname, role, description)
org = model.get_organization(orgname)
team = model.create_team(teamname, org, role, description)
if is_existing:
if 'description' in json: