Skip to content

Commit

Permalink
Reduce queries on ballot entries as part of #676
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbelesky committed Sep 2, 2018
1 parent 59e1a0b commit feedc7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabbycat/results/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def load_speakers(self):
speakerscores = self.ballotsub.speakerscore_set.filter(
debate_team__side__in=self.sides,
position__in=self.positions,
).select_related('speaker')
).select_related('speaker', 'debate_team')

for ss in speakerscores:
self.speakers[ss.debate_team.side][ss.position] = ss.speaker
Expand Down

0 comments on commit feedc7d

Please sign in to comment.