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

{{ election.primary_party }} primary

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