Changes between Initial Version and Version 1 of Ticket #12133


Ignore:
Timestamp:
Feb 4, 2010, 9:38:38 AM (15 years ago)
Author:
Russell Keith-Magee
Comment:

Unless I'm misunderstanding you, this advice is already given in the paragraph before the one you reference:

The vote() view is still required. However, it must be modified to match the new context variables. In the render_to_response() call, rename the poll context variable to object.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12133

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #12133 – Description

    initial v1  
    11In the last part of tutorial 4, it mention that in order to get the vote() view working, just change:
    22
    3 {{{return HttpResponseRedirect(reverse('poll_results', args=(p.id,))) }}}
     3{{{
     4return HttpResponseRedirect(reverse('poll_results', args=(p.id,)))
     5}}}
    46 
    57However 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.
Back to Top