#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.8dd64c4215002bbf8d37d61fb5dc18c9%40djangoproject.com.

Reply via email to