80
89
team = models.Team(lp_name=l.name, name=l.display_name,
81
90
owner_profile=create_profile(get_team_owner(l).name))
84
94
team = filter(lambda a: a.lp_name == l.name, existing_locos)[0]
85
95
team.name = l.display_name
86
96
team.owner_profile = create_profile(get_team_owner(l).name)
87
97
if not len(team.contact_profiles.all()):
88
98
team.contact_profiles.add(team.owner_profile)
89
100
update_admins(team, l, lp)
91
102
if not existing_groups or l.name not in [g.name for g in existing_groups]: