Skip to content

Commit 4c4bc99

Browse files
committed
Improve the robustness of get_wg_section
- Legacy-Id: 4835
1 parent 32c7740 commit 4c4bc99

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

ietf/iesg/views.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,16 @@ def get_wg_section(wg):
177177
charter_slug = None
178178
if wg.charter:
179179
charter_slug = wg.charter.get_state_slug()
180-
if wg.state_id == "proposed":
181-
if charter_slug == "intrev":
182-
s = '411'
183-
elif charter_slug == "iesgrev":
184-
s = '412'
185-
elif wg.state_id == "active":
186-
if charter_slug == "intrev":
187-
s = '421'
188-
elif charter_slug == "iesgrev":
180+
if wg.state_id in ['active','dormant']:
181+
if charter_slug in ['extrev','iesgrev']:
189182
s = '422'
183+
else:
184+
s = '421'
185+
else:
186+
if charter_slug in ['extrev','iesgrev']:
187+
s = '412'
188+
else:
189+
s = '411'
190190
return s
191191

192192
if settings.USE_DB_REDESIGN_PROXY_CLASSES:

0 commit comments

Comments
 (0)