#19451: Scripting error on Django tutorial
--------------------------------------+----------------------
     Reporter:  Ganiserb              |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Documentation         |    Version:  1.4
     Severity:  Normal                |   Keywords:  tutorial
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+----------------------
 I think there is a mistake in the step 3 of the tutorial.

 I the part that reads:
 ----
 Use the template system

 Back to the detail() view for our poll application. Given the context
 variable poll, here's what the polls/detail.html template might look like:


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

 I think the part that reads "<li>{{ choice.choice_text }}</li>" should be
 "<li>{{ choice.choice }}</li>"; since the ''change'' is not mentioned
 before and the attribute "choice" itself contains the "choice text".

 Thanks.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19451>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to