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
This commit is contained in:
Ole Laursen 2015-10-01 14:53:00 +00:00
parent 6f044eea08
commit b1fee9c139

View file

@ -645,9 +645,10 @@ def document_writeup(request, name):
"<em>Draft</em> of message to be sent <em>after</em> approval:",
writeups))
writeups.append(("Announcement",
text_from_writeup("changed_ballot_approval_text"),
urlreverse("doc_ballot_approvaltext", kwargs=dict(name=doc.name))))
if doc.get_state("draft-iesg"):
writeups.append(("Announcement",
text_from_writeup("changed_ballot_approval_text"),
urlreverse("doc_ballot_approvaltext", kwargs=dict(name=doc.name))))
writeups.append(("Ballot Text",
text_from_writeup("changed_ballot_writeup_text"),