Opened 3 years ago

Closed 3 years ago

#18500 closed Uncategorized (invalid)

Part 3 tutorial - field is choice_text

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords: documentation, error
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

in the following part {{ choice.choice }} should be {{ choice.choice_text }} / "Use the template system" section / part 3 tutorial

<h1>{{ poll.question }}</h1>
<ul>
{% for choice in poll.choice_set.all %}

<li>{{ choice.choice }}</li>

{% endfor %}
</ul>

Change History (2)

comment:1 Changed 3 years ago by lukeplant

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by claudep

  • Resolution set to invalid
  • Status changed from new to closed

It seems you are mixing versions 1.4 and dev of the tutorial. choice.choice has been renamed choice.choice_text in the development version (and appears correctly in the section you mention).

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