diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-05-25 21:13:51 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-05-25 21:49:47 +0200 |
| commit | 45284a90a515e71552f37c539a3cfdc38f15d869 (patch) | |
| tree | 5e0dde5b34e1dbebc52025366c92ef44775b89b5 /docs/intro/tutorial04.txt | |
| parent | ce8f874b88942863be17b4ee02bb27632cc0e65e (diff) | |
Fixed #17929 -- Improved tutorial wording and capitalization.
Thanks rmattb for the report and the patch.
Diffstat (limited to 'docs/intro/tutorial04.txt')
| -rw-r--r-- | docs/intro/tutorial04.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index 8a9f4ee380..fac1433a8d 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -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> |
