Skip to content

Commit e93b5ec

Browse files
committed
Returns "there are no ballots to view yet" rather than 404ing when the ballot link is followed for a document that exists.
It is typical for last call to be issued (which includes a link to the ballot page) well in advance of creating any ballot for a document. Fixes bug 1233 Commit ready for merge - Legacy-Id: 7077
1 parent a3da5bb commit e93b5ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def document_ballot_content(request, doc, ballot_id, editable=True):
650650
ballot = all_ballots[-1]
651651

652652
if not ballot:
653-
raise Http404
653+
return "<p>No ballots are available for this document at this time.</p>"
654654

655655
deferred = doc.active_defer_event()
656656

0 commit comments

Comments
 (0)