Source

JythonBook / src / chapter14 / tour / pollsite / polls / templates / polls / results.html

Full commit
{% extends 'base.html' %}
{% block content %}
<h1>{{ poll.question }}</h1>

<ul>
{% for choice in poll.choice_set.all %}
    <li>{{ choice.choice }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}</li>
{% endfor %}
</ul>
{% endblock %}