Commit 76c694fc authored by Adorilson Bezerra's avatar Adorilson Bezerra Committed by Claude Paroz

Don't show inactive members twice for the coordinator (bug #642201)

parent 7f766022
......@@ -105,13 +105,13 @@ def team(request, team_slug):
role.role = form_value
role.save()
# Create forms for template
commit_roles = Role.objects.filter(team=team, role='committer')
commit_roles = Role.objects.filter(team=team, role='committer', is_active=True)
if commit_roles:
mem_groups[0]['form'] = EditMemberRoleForm(commit_roles)
review_roles = Role.objects.filter(team=team, role='reviewer')
review_roles = Role.objects.filter(team=team, role='reviewer', is_active=True)
if review_roles:
mem_groups[1]['form'] = EditMemberRoleForm(review_roles)
translate_roles = Role.objects.filter(team=team, role='translator')
translate_roles = Role.objects.filter(team=team, role='translator', is_active=True)
if translate_roles:
mem_groups[2]['form'] = EditMemberRoleForm(translate_roles)
context['can_edit_team'] = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment