Opened 3 years ago

Closed 3 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 3 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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