Skip to content

Commit c83ef0c

Browse files
committed
Merged [7077] from rjsparks@nostrum.com: 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 - Legacy-Id: 7223 Note: SVN reference [7077] has been migrated to Git commit e93b5ec
2 parents 3abaab1 + e93b5ec commit c83ef0c

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
@@ -648,7 +648,7 @@ def document_ballot_content(request, doc, ballot_id, editable=True):
648648
ballot = all_ballots[-1]
649649

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

653653
deferred = doc.active_defer_event()
654654

0 commit comments

Comments
 (0)