[damned-lies] Fix handling of EditMemberRoleForm (Fixes #646866)
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Fix handling of EditMemberRoleForm (Fixes #646866)
- Date: Thu, 7 Apr 2011 15:05:57 +0000 (UTC)
commit 7eb7742f24cceb19a98c8dada16e77af1c007b39
Author: Claude Paroz <claude 2xlibre net>
Date: Thu Apr 7 17:05:25 2011 +0200
Fix handling of EditMemberRoleForm (Fixes #646866)
teams/views.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/teams/views.py b/teams/views.py
index 6d14880..510050d 100644
--- a/teams/views.py
+++ b/teams/views.py
@@ -89,7 +89,7 @@ def team(request, team_slug):
if team.can_edit(request.user):
if request.method == 'POST':
form_type = request.POST['form_type']
- roles = Role.objects.filter(team=team, role=form_type)
+ roles = Role.objects.filter(team=team, role=form_type, is_active=True)
form = EditMemberRoleForm(roles, request.POST)
if form.is_valid():
for key, field in form.fields.items():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]