Opened 12 years ago
Closed 12 years ago
#19666 closed Bug (invalid)
choice_text in the detail template
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In the doc website part 3 it says about the detail template:
<h1>{{ poll.question }}</h1>
<ul>
{% for choice in poll.choice_set.all %}
<li>{{ choice.choice }}</li>
{% endfor %}
</ul>
But choice.choice does not exist. Should be choice.choice_text
Note:
See TracTickets
for help on using tickets.
You're mixing versions 1.4 and 1.5/dev of the docs — you started the tutorial with one version and continued with the other.