We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4aea57 commit 3cd0304Copy full SHA for 3cd0304
1 file changed
ietf/idrfc/idrfc_wrapper.py
@@ -546,14 +546,14 @@ def _init(self):
546
ads = set()
547
548
positions = []
549
- for p in self.ballot.positions.all():
+ for p in self.ballot.positions.all().select_related('ad'):
550
po = create_position_object(self.ballot, p)
551
#if not self.ballot_active:
552
# if 'is_old_ad' in po:
553
# del po['is_old_ad']
554
ads.add(str(p.ad))
555
positions.append(po)
556
- for c in self.ballot.comments.all():
+ for c in self.ballot.comments.all().select_related('ad'):
557
if (str(c.ad) not in ads) and c.ad.is_current_ad():
558
positions.append({'has_text':True,
559
'comment_text':c.text,
0 commit comments