Skip to content

Commit 09281df

Browse files
committed
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
1 parent 22cd30d commit 09281df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/group/proxy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class IETFWG(Group):
103103
group_acronym__acronym__contains="acronym__contains",
104104
email_archive__startswith="list_archive__startswith",
105105
group_type=lambda v: ("type", { 1: "wg" }[int(v)]),
106-
status=lambda v: ("state", { 1: "active" }[int(v)]),
106+
status=lambda v: ("state__in", { 1: ("active", "bof") }[int(v)]),
107107
areagroup__area__status=lambda v: ("parent__state", { 1: "active" }[v]),
108108
start_date__isnull=lambda v: None if v else ("groupevent__changestategroupevent__state__slug", "active"),
109109
),
@@ -133,7 +133,7 @@ def start_date(self):
133133
#status = models.ForeignKey(WGStatus)
134134
@property
135135
def status_id(self):
136-
return { "active": 1, "dormant": 2, "conclude": 3, "proposed": 4 }[self.state_id]
136+
return { "active": 1, "dormant": 2, "conclude": 3, "proposed": 4, "bof": 1 }[self.state_id]
137137
#area_director = models.ForeignKey(AreaDirector, null=True)
138138
#meeting_scheduled = models.CharField(blank=True, max_length=3)
139139
@property

0 commit comments

Comments
 (0)