Skip to content

Commit ccfd8b5

Browse files
committed
Check if idinternal exists. See ietf-tools#654
- Legacy-Id: 3076
1 parent e0f4185 commit ccfd8b5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/submit/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ def perform_post(submission):
4747
draft.txt_page_count = submission.txt_page_count
4848
draft.last_modified_date = datetime.date.today()
4949
draft.abstract = submission.abstract
50+
draft.status_id=1 # Active
51+
draft.expired_tombstone=0
5052
draft.save()
51-
if draft.idinternal.cur_sub_state_id == 5 and draft.idinternal.rfc_flag == 0: # Substate 5 Revised ID Needed
53+
if draft.idinternal and draft.idinternal.cur_sub_state_id == 5 and draft.idinternal.rfc_flag == 0: # Substate 5 Revised ID Needed
5254
draft.idinternal.prev_sub_state_id = draft.idinternal.cur_sub_state_id
5355
draft.idinternal.cur_sub_state_id = 2 # Substate 2 AD Followup
5456
draft.idinternal.save()

0 commit comments

Comments
 (0)