From 66bbc97679dc579b810f1db306541c3d098c3fd8 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sun, 22 Mar 2015 14:53:16 +0000 Subject: [PATCH] Normalized the new filter expression to limit the wg state in the wg selection in community_tags.py - Legacy-Id: 9320 --- ietf/community/templatetags/community_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/community/templatetags/community_tags.py b/ietf/community/templatetags/community_tags.py index ce92c5e18..6d499410f 100644 --- a/ietf/community/templatetags/community_tags.py +++ b/ietf/community/templatetags/community_tags.py @@ -25,7 +25,7 @@ class CommunityListNode(template.Node): managed_areas = [i.group for i in Role.objects.filter(name__slug='ad', email__in=person.email_set.all())] for area in managed_areas: groups.append(CommunityList.objects.get_or_create(group=area)[0]) - managed_wg = [i.group for i in Role.objects.filter(name__slug='chair', group__type__slug='wg', group__state_id__slug__in=("active", "bof", "proposed", "replaced"), email__in=person.email_set.all())] + managed_wg = [i.group for i in Role.objects.filter(name__slug='chair', group__type__slug='wg', group__state__slug__in=("active", "bof", "proposed", "replaced"), email__in=person.email_set.all())] for wg in managed_wg: groups.append(CommunityList.objects.get_or_create(group=wg)[0]) lists['group'] = groups