Normalized the new filter expression to limit the wg state in the wg selection in community_tags.py
- Legacy-Id: 9320
This commit is contained in:
parent
bc9cbb97d0
commit
66bbc97679
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue