{% for p in game.players %} {% set voted = False %} {% for v in game.votes if v.voter_player_id == p.id %} {% set voted = True %} {% endfor %}