Changes between Initial Version and Version 1 of Ticket #12133


Ignore:
Timestamp:
02/04/2010 09:38:38 AM (5 years ago)
Author:
russellm
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 Status changed from new to closed
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
    • Property Resolution changed from to invalid
  • 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