@@ -54,8 +54,8 @@ def do_undefer_ballot(request, doc):
5454 if doc .type_id == 'draft' :
5555 new_state = State .objects .get (used = True , type = "draft-iesg" , slug = 'iesg-eva' )
5656 prev_tags = doc .tags .filter (slug__in = IESG_SUBSTATE_TAGS )
57- elif doc .type_id == 'conflrev' :
58- new_state = State .objects .get (used = True , type = 'conflrev' , slug = 'iesgeval' )
57+ elif doc .type_id in [ 'conflrev' , 'statchg' ] :
58+ new_state = State .objects .get (used = True , type = doc . type_id , slug = 'iesgeval' )
5959
6060 prev_state = doc .get_state (new_state .type_id if new_state else None )
6161
@@ -334,9 +334,9 @@ def clear_ballot(request, name):
334334def defer_ballot (request , name ):
335335 """Signal post-pone of ballot, notifying relevant parties."""
336336 doc = get_object_or_404 (Document , docalias__name = name )
337- if doc .type_id not in ('draft' ,'conflrev' ):
337+ if doc .type_id not in ('draft' ,'conflrev' , 'statchg' ):
338338 raise Http404 ()
339- interesting_state = dict (draft = 'draft-iesg' ,conflrev = 'conflrev' )
339+ interesting_state = dict (draft = 'draft-iesg' ,conflrev = 'conflrev' , statchg = 'statchg' )
340340 state = doc .get_state (interesting_state [doc .type_id ])
341341 if not state or state .slug == 'defer' or not doc .telechat_date ():
342342 raise Http404 ()
@@ -353,8 +353,8 @@ def defer_ballot(request, name):
353353 if doc .type_id == 'draft' :
354354 new_state = State .objects .get (used = True , type = "draft-iesg" , slug = 'defer' )
355355 prev_tags = doc .tags .filter (slug__in = IESG_SUBSTATE_TAGS )
356- elif doc .type_id == 'conflrev' :
357- new_state = State .objects .get (used = True , type = 'conflrev' , slug = 'defer' )
356+ elif doc .type_id in [ 'conflrev' , 'statchg' ] :
357+ new_state = State .objects .get (used = True , type = doc . type_id , slug = 'defer' )
358358
359359 prev_state = doc .get_state (new_state .type_id if new_state else None )
360360
@@ -383,11 +383,11 @@ def defer_ballot(request, name):
383383def undefer_ballot (request , name ):
384384 """undo deferral of ballot ballot."""
385385 doc = get_object_or_404 (Document , docalias__name = name )
386- if doc .type_id not in ('draft' ,'conflrev' ):
386+ if doc .type_id not in ('draft' ,'conflrev' , 'statchg' ):
387387 raise Http404 ()
388388 if doc .type_id == 'draft' and not doc .get_state ("draft-iesg" ):
389389 raise Http404 ()
390- interesting_state = dict (draft = 'draft-iesg' ,conflrev = 'conflrev' )
390+ interesting_state = dict (draft = 'draft-iesg' ,conflrev = 'conflrev' , statchg = 'statchg' )
391391 state = doc .get_state (interesting_state [doc .type_id ])
392392 if not state or state .slug != 'defer' :
393393 raise Http404 ()
0 commit comments