1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #17929 -- Improved tutorial wording and capitalization.

Thanks rmattb for the report and the patch.
This commit is contained in:
Claude Paroz
2012-05-25 21:13:51 +02:00
parent ce8f874b88
commit 45284a90a5
8 changed files with 25 additions and 24 deletions

View File

@@ -22,7 +22,7 @@ tutorial, so that the template contains an HTML ``<form>`` element:
{% csrf_token %}
{% for choice in poll.choice_set.all %}
<input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" />
<label for="choice{{ forloop.counter }}">{{ choice.choice }}</label><br />
<label for="choice{{ forloop.counter }}">{{ choice.choice_text }}</label><br />
{% endfor %}
<input type="submit" value="Vote" />
</form>
@@ -168,7 +168,7 @@ Now, create a ``results.html`` template:
<ul>
{% for choice in poll.choice_set.all %}
<li>{{ choice.choice }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}</li>
<li>{{ choice.choice_text }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}</li>
{% endfor %}
</ul>