#12133: tutorial 4 - generic view and vote view ---------------------------+------------------------------------------------ Reporter: dotdat | Owner: nobody Status: new | Milestone: Component: Documentation | Version: 1.1 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ In the last part of tutorial 4, it mention that in order to get the vote() view working, just change:
{{{return HttpResponseRedirect(reverse('poll_results', args=(p.id,))) }}} However in the vote() view, the exception handling code also needs to change to reference the new poll_detail.html template and change poll object name 'poll' to 'object' since the poll_detail.html was changed to use the generic view. This is more of a clarification and nothing really wrong with the tutorial. -- Ticket URL: <http://code.djangoproject.com/ticket/12133> Django <http://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 post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---