Fixed a crash for the case where we're looking at a historic charter page and there's no active ballot for the histoic charter.
- Legacy-Id: 4804
This commit is contained in:
parent
7c78ed81ef
commit
fc22a660e7
|
@ -143,7 +143,11 @@ def document_main(request, name, rev=None):
|
|||
|
||||
ballot_summary = None
|
||||
if doc.get_state_slug() in ("intrev", "iesgrev"):
|
||||
ballot_summary = needed_ballot_positions(doc, doc.active_ballot().active_ad_positions().values())
|
||||
active_ballot = doc.active_ballot()
|
||||
if active_ballot:
|
||||
ballot_summary = needed_ballot_positions(doc, active_ballot.active_ad_positions().values())
|
||||
else:
|
||||
ballot_summary = "No active ballot found."
|
||||
|
||||
return render_to_response("idrfc/document_charter.html",
|
||||
dict(doc=doc,
|
||||
|
|
Loading…
Reference in a new issue