We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ec98fd commit 15d45b4Copy full SHA for 15d45b4
1 file changed
ietf/doc/templatetags/ballot_icon.py
@@ -73,7 +73,8 @@ def ballot_icon(context, doc):
73
if not showballoticon(doc):
74
return ""
75
76
- ballot = doc.active_ballot()
+ ballot = doc.ballot if hasattr(doc, 'ballot') else doc.active_ballot()
77
+
78
if not ballot:
79
80
@@ -86,7 +87,7 @@ def sort_key(t):
86
87
else:
88
return (1, pos.pos.order)
89
- positions = list(doc.active_ballot().active_ad_positions().items())
90
+ positions = list(ballot.active_ad_positions().items())
91
positions.sort(key=sort_key)
92
93
right_click_string = ''
0 commit comments