Opened 3 years ago

Closed 3 years ago

#18851 closed Uncategorized (invalid)

Error in documentation

Reported by: ctigeek@… 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


Code example has "choice.choice" in FOR loop, it should just be "choice".


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


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

Change History (1)

comment:1 Changed 3 years ago by timo

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

You are mixing versions of the tutorial. choice.choice has been renamed choice.choice_text in the development version of the tutorial.

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