Fix proxy to take combined draft/RFCs with two ballots into account when returning the ballot

- Legacy-Id: 3897
This commit is contained in:
Ole Laursen 2012-02-02 20:10:06 +00:00
parent d8c546ec21
commit 93e96e7567

View file

@ -268,8 +268,15 @@ def get_ballot(name):
raise Http404
except BallotInfo.DoesNotExist:
raise Http404
return (BallotWrapper(d), RfcWrapper(d) if m else IdWrapper(d))
bw = BallotWrapper(d)
if m:
d.viewing_as_rfc = True
dw = RfcWrapper(d)
else:
dw = IdWrapper(d)
return (bw, dw)
if m:
rfc_number = int(m.group(1))