#33401: Error in Django Tutorial # 4
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  nobody
  frankclaessen                      |
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  4.0
  Uncategorized                      |       Keywords:  django tutorial 4
               Severity:  Normal     |  reverse
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 On page 49 part of views.py is changed and at the end of

 def vote ...:

 there is a redirect as follows:

 return HttpResponseRedirect(reverse('polls:results', args=(question.id,)))

 There is an error however that shows that question.id is in fact empty
 The correct line therefore has to be:

 return HttpResponseRedirect(reverse('polls:results', args=(question_id,)))

 The error is caused by the reverse part by the way, not by the redirect

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33401>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/056.7a2bcec9a3800e5f9249dba7ee2ae086%40djangoproject.com.

Reply via email to