Opened 4 years ago
Closed 4 years ago
#31586 closed Bug (invalid)
Small mistake in 'Writing your first Django app, part 4' tutorial
Reported by: | Mikolaj Kaczmarek | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
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
Hi, I found out that in one of code snippets, there is one mistake in href
tag. I believe that instead of 'polls:detail'
it should be 'polls:vote'
. I'm talking about 'Vote again?' href
in code below:
<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>
Note:
See TracTickets
for help on using tickets.
It's correct as is. The link goes to the page where the user can vote, not to the view that processes the results of voting.