Opened 4 years ago

Closed 4 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

Change History (1)

comment:1 Changed 4 years ago by Aymeric Augustin

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top