Re: [Django] #12133: tutorial 4 - generic view and vote view

2010-02-04 Thread Django
#12133: tutorial 4 - generic view and vote view
+---
  Reporter:  dotdat | Owner:  nobody
Status:  closed | Milestone:
 Component:  Documentation  |   Version:  1.1   
Resolution:  invalid|  Keywords:
 Stage:  Unreviewed | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by russellm):

  * status:  new => closed
  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0
  * resolution:  => invalid

Old description:

> 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.

New description:

 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.

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.
 }}}

-- 
Ticket URL: 
Django 
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-upda...@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.



[Django] #12133: tutorial 4 - generic view and vote view

2009-11-02 Thread Django
#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: 
Django 
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
-~--~~~~--~~--~--~---