Skip to content

Commit b1fee9c

Browse files
committed
Summary: Only show ballot approval text in case a draft has an IESG
state - the linked view has this restriction, so previously would result in a 404 - Legacy-Id: 10116
1 parent 6f044ee commit b1fee9c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

ietf/doc/views_doc.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,10 @@ def text_from_writeup(event_type):
645645
"<em>Draft</em> of message to be sent <em>after</em> approval:",
646646
writeups))
647647

648-
writeups.append(("Announcement",
649-
text_from_writeup("changed_ballot_approval_text"),
650-
urlreverse("doc_ballot_approvaltext", kwargs=dict(name=doc.name))))
648+
if doc.get_state("draft-iesg"):
649+
writeups.append(("Announcement",
650+
text_from_writeup("changed_ballot_approval_text"),
651+
urlreverse("doc_ballot_approvaltext", kwargs=dict(name=doc.name))))
651652

652653
writeups.append(("Ballot Text",
653654
text_from_writeup("changed_ballot_writeup_text"),

0 commit comments

Comments
 (0)