[Django] #31586: Small mistake in 'Writing your first Django app, part 4' tutorial

14 views
Skip to first unread message

Django

unread,
May 14, 2020, 11:11:36 AM5/14/20
to django-...@googlegroups.com
#31586: Small mistake in 'Writing your first Django app, part 4' tutorial
-----------------------------------------+------------------------
Reporter: mikkac | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
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>
}}}

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

Django

unread,
May 14, 2020, 9:10:11 PM5/14/20
to django-...@googlegroups.com
#31586: Small mistake in 'Writing your first Django app, part 4' tutorial
-----------------------------------+--------------------------------------
Reporter: Mikolaj Kaczmarek | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => invalid


Comment:

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/31586#comment:1>

Reply all
Reply to author
Forward
0 new messages