mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #17929 -- Improved tutorial wording and capitalization.
Thanks rmattb for the report and the patch.
This commit is contained in:
parent
ce8f874b88
commit
45284a90a5
8 changed files with 25 additions and 24 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue