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.
* cc: frankclaessen (added)
* status: new => closed
* has_patch: 0 => 1
* resolution: => fixed
--
Ticket URL: <https://code.djangoproject.com/ticket/33401#comment:1>
* resolution: fixed => invalid
* component: Uncategorized => Documentation
--
Ticket URL: <https://code.djangoproject.com/ticket/33401#comment:2>