#34475 closed Bug (invalid)

bug in django tutorial

Reported by: DoyunKim Owned by: nobody
Component: Documentation Version: 4.1
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

there is a bug in html source at django tutorial
https://docs.djangoproject.com/ko/4.1/intro/tutorial04/
at this example

<h1>{{ question.question_text }}</h1>

<ul>
{% for choice in question.choice_set.all %}
    <li>{{ choice.choice_text }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}</li>
{% endfor %}
</ul>

<a href="{% url 'polls:detail' question.id %}">Vote again?</a>
{{ choice.choice_text }} -- {{ choice.votes }}

this code should be changed to below

{{ choice.choice_text }} - {{ choice.votes }}

Change History (2)

comment:1 by DoyunKim, 18 months ago

Version: 4.24.1

comment:2 by Tim Graham, 18 months ago

Resolution: invalid
Status: newclosed

I'm not aware of any reason why using a double dash there is inappropriate.

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