Skip to content

Commit e0f4185

Browse files
committed
Change substate if needed. Fixes ietf-tools#654
- Legacy-Id: 3075
1 parent be0f5e4 commit e0f4185

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ietf/submit/utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
from django.contrib.sites.models import Site
77

88
from ietf.idtracker.models import (InternetDraft, PersonOrOrgInfo, IETFWG,
9-
IDAuthor, EmailAddress)
9+
IDAuthor, EmailAddress, IDState)
1010
from ietf.utils.mail import send_mail
11+
from ietf.idrfc.utils import add_document_comment
1112

1213

1314
# Some usefull states
@@ -47,6 +48,11 @@ def perform_post(submission):
4748
draft.last_modified_date = datetime.date.today()
4849
draft.abstract = submission.abstract
4950
draft.save()
51+
if draft.idinternal.cur_sub_state_id == 5 and draft.idinternal.rfc_flag == 0: # Substate 5 Revised ID Needed
52+
draft.idinternal.prev_sub_state_id = draft.idinternal.cur_sub_state_id
53+
draft.idinternal.cur_sub_state_id = 2 # Substate 2 AD Followup
54+
draft.idinternal.save()
55+
add_document_comment(None, draft, "Sub state has been changed to AD Follow up from New Id Needed")
5056
except InternetDraft.DoesNotExist:
5157
draft = InternetDraft.objects.create(
5258
title=submission.id_document_name,

0 commit comments

Comments
 (0)