From 09281df150335bfb5db38adb9c517e32fb932b88 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Mon, 5 Mar 2012 17:36:06 +0000 Subject: [PATCH] Improve IETFWG proxy to take "bof" groups into account when querying for active groups and map "bof" to IETFWG.ACTIVE. Fixes 784. - Legacy-Id: 4029 --- ietf/group/proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/group/proxy.py b/ietf/group/proxy.py index 97a8fef7b..7d2540369 100644 --- a/ietf/group/proxy.py +++ b/ietf/group/proxy.py @@ -103,7 +103,7 @@ class IETFWG(Group): group_acronym__acronym__contains="acronym__contains", email_archive__startswith="list_archive__startswith", group_type=lambda v: ("type", { 1: "wg" }[int(v)]), - status=lambda v: ("state", { 1: "active" }[int(v)]), + status=lambda v: ("state__in", { 1: ("active", "bof") }[int(v)]), areagroup__area__status=lambda v: ("parent__state", { 1: "active" }[v]), start_date__isnull=lambda v: None if v else ("groupevent__changestategroupevent__state__slug", "active"), ), @@ -133,7 +133,7 @@ class IETFWG(Group): #status = models.ForeignKey(WGStatus) @property def status_id(self): - return { "active": 1, "dormant": 2, "conclude": 3, "proposed": 4 }[self.state_id] + return { "active": 1, "dormant": 2, "conclude": 3, "proposed": 4, "bof": 1 }[self.state_id] #area_director = models.ForeignKey(AreaDirector, null=True) #meeting_scheduled = models.CharField(blank=True, max_length=3) @property