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/tutorial03.txt | |
| parent | ce8f874b88942863be17b4ee02bb27632cc0e65e (diff) | |
Fixed #17929 -- Improved tutorial wording and capitalization.
Thanks rmattb for the report and the patch.
Diffstat (limited to 'docs/intro/tutorial03.txt')
| -rw-r--r-- | docs/intro/tutorial03.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index c45c944acb..fd3a04ba93 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -400,7 +400,7 @@ like: <h1>{{ poll.question }}</h1> <ul> {% for choice in poll.choice_set.all %} - <li>{{ choice.choice }}</li> + <li>{{ choice.choice_text }}</li> {% endfor %} </ul> @@ -412,7 +412,7 @@ list-index lookup. Method-calling happens in the :ttag:`{% for %}<for>` loop: ``poll.choice_set.all`` is interpreted as the Python code -``poll.choice_set.all()``, which returns an iterable of Choice objects and is +``poll.choice_set.all()``, which returns an iterable of ``Choice`` objects and is suitable for use in the :ttag:`{% for %}<for>` tag. See the :doc:`template guide </topics/templates>` for more about templates. |
