[damned-lies] Don't show inactive members twice for the coordinator (bug #642201)
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Don't show inactive members twice for the coordinator (bug #642201)
- Date: Sat, 26 Feb 2011 20:51:02 +0000 (UTC)
commit 76c694fc5c518fe104335aaf6d2a69f3caa3d83b
Author: Adorilson Bezerra <adorilson gmail com>
Date: Sat Feb 26 21:50:39 2011 +0100
Don't show inactive members twice for the coordinator (bug #642201)
teams/views.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/teams/views.py b/teams/views.py
index 1c25e2c..6d14880 100644
--- a/teams/views.py
+++ b/teams/views.py
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]