django: complete tutorial #5

This commit is contained in:
2018-05-07 01:12:14 -07:00
parent d7d7b195d8
commit 92a5117dfc
5 changed files with 106 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
<h1>{{ question.question_text }}</h1>
<ul>
{% for choice in question.choice_set.all %}
<li>{{ choice.choice_text }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}</li>
{% endfor %}
</ul>
<a href="{% url 'polls:detail' question.id %}">Vote again?</a>