{% load humanize %}
{% if election.primary %}

Results

{% endif %}
{% for vote in election.votes_table|dictsortreversed:"count" %} {% endfor %}
Percent Candidate Party Votes Winner
{{ vote.pct|floatformat }}% {{ vote.first }} {{ vote.last }} {{ vote.party }} {{ vote.count|intcomma }} {% if vote.winner %}WINNER{% endif %}