Skip to content

Commit 93e96e7

Browse files
committed
Fix proxy to take combined draft/RFCs with two ballots into account when returning the ballot
- Legacy-Id: 3897
1 parent d8c546e commit 93e96e7

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

ietf/idrfc/views_doc.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,15 @@ def get_ballot(name):
268268
raise Http404
269269
except BallotInfo.DoesNotExist:
270270
raise Http404
271-
272-
return (BallotWrapper(d), RfcWrapper(d) if m else IdWrapper(d))
271+
272+
bw = BallotWrapper(d)
273+
if m:
274+
d.viewing_as_rfc = True
275+
dw = RfcWrapper(d)
276+
else:
277+
dw = IdWrapper(d)
278+
279+
return (bw, dw)
273280

274281
if m:
275282
rfc_number = int(m.group(1))

0 commit comments

Comments
 (0)