Remove the rest of the log.assertions checking that iesg_state existed in places we expected it to. Commit ready for merge.
- Legacy-Id: 17496
This commit is contained in:
parent
f2b106cf8c
commit
db5d11ea32
|
@ -333,7 +333,6 @@ class DocumentInfo(models.Model):
|
|||
else:
|
||||
return "Replaced"
|
||||
elif state.slug == "active":
|
||||
log.assertion('iesg_state')
|
||||
if iesg_state:
|
||||
if iesg_state.slug == "dead":
|
||||
# Many drafts in the draft-iesg "Dead" state are not dead
|
||||
|
|
|
@ -168,7 +168,6 @@ def state_age_colored(doc):
|
|||
# Don't show anything for expired/withdrawn/replaced drafts
|
||||
return ""
|
||||
iesg_state = doc.get_state_slug('draft-iesg')
|
||||
log.assertion('iesg_state')
|
||||
if not iesg_state:
|
||||
return ""
|
||||
|
||||
|
|
|
@ -405,7 +405,6 @@ def document_main(request, name, rev=None):
|
|||
actions.append((label, urlreverse('ietf.doc.views_draft.request_publication', kwargs=dict(name=doc.name))))
|
||||
|
||||
if doc.get_state_slug() not in ["rfc", "expired"] and doc.stream_id in ("ietf",) and not snapshot:
|
||||
log.assertion('iesg_state')
|
||||
if iesg_state.slug == 'idexists' and can_edit:
|
||||
actions.append(("Begin IESG Processing", urlreverse('ietf.doc.views_draft.edit_info', kwargs=dict(name=doc.name)) + "?new=1"))
|
||||
elif can_edit_stream_info and (iesg_state.slug in ('idexists','watching')):
|
||||
|
|
|
@ -157,7 +157,6 @@ def all_id2_txt():
|
|||
# 3
|
||||
if state == "active":
|
||||
s = "I-D Exists"
|
||||
log.assertion('iesg_state')
|
||||
if iesg_state:
|
||||
s = iesg_state.name
|
||||
tags = d.tags.filter(slug__in=IESG_SUBSTATE_TAGS).values_list("name", flat=True)
|
||||
|
|
Loading…
Reference in a new issue