#18560: polls/detail.html Demo Code in Django 1.4 Tutorial is Incorrect? ----------------------------------+-------------------- Reporter: Benjamin E White | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: 1.4 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------+-------------------- If I'm not mistaken, the [https://docs.djangoproject.com/en/1.4/intro/tutorial03/#use-the-template- system demo code for polls/detail.html] is incorrect.
This: {{{ #!div style="font-size: 80%" {{{#!python <h1>{{ poll.question }}</h1> <ul> {% for choice in poll.choice_set.all %} <li>{{ choice.choice }}</li> {% endfor %} </ul> }}} }}} When I view this at http://127.0.0.1:8000/polls/1/, it gives me the appropriate header, but the bullets are blank (i can see the bullets but no text). My bulleted lists appear as expected after making this modification, which is in line with the model described [https://docs.djangoproject.com/en/dev/intro/tutorial01/#creating-models here] in the first part of the tutorial: {{{ #!div style="font-size: 80%" {{{#!python <li>{{ choice.choice_text }}</li> }}} }}} -- Ticket URL: <https://code.djangoproject.com/ticket/18560> 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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.