From 579cb3eabe6fd7824a498254b681435da7882683 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 24 May 2018 14:46:23 +0000 Subject: [PATCH] Updated the filtering for non-wg and wg mailing list pages. - Legacy-Id: 15163 --- ietf/mailinglists/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/mailinglists/views.py b/ietf/mailinglists/views.py index 96fdfe6c5..bd4126443 100644 --- a/ietf/mailinglists/views.py +++ b/ietf/mailinglists/views.py @@ -11,7 +11,7 @@ from ietf.group.models import Group from ietf.mailinglists.models import List def groups(request): - groups = Group.objects.filter(type__in=("wg", "rg", "ag"), list_archive__startswith='http').order_by("acronym") + groups = Group.objects.filter(type__in=("wg", "rg", "ag"), list_archive__startswith='http').exclude(state__in=('bof', 'conclude')).order_by("acronym") return render(request, "mailinglists/group_archives.html", { "groups": groups } ) @@ -19,7 +19,7 @@ def groups(request): # safely cache this for some time. @cache_page(15*60) def nonwg(request): - groups = Group.objects.filter(type__in=("wg", "rg")).exclude(state__in=['bof', 'active']).order_by("acronym") + groups = Group.objects.filter(type__in=("wg", "rg")).exclude(state__in=['bof', 'conclude']).order_by("acronym") #urls = [ g.list_archive for g in groups if '.ietf.org' in g.list_archive ]