Re: [Django] #10940: Omission in tutorial, part 4: generic views

2009-05-08 Thread Django
#10940: Omission in tutorial, part 4: generic views
+---
  Reporter:  zpearce| Owner:  nobody
   
Status:  closed | Milestone:
   
 Component:  Documentation  |   Version:  SVN   
   
Resolution:  invalid|  Keywords:  tutorial, generic view, 
object_id
 Stage:  Unreviewed | Has_patch:  0 
   
Needs_docs:  0  |   Needs_tests:  0 
   
Needs_better_patch:  0  |  
+---
Changes (by timo):

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

Comment:

 This is not necessary since {{{vote}}} is not a generic view.  Notice that
 the URLconf keeps the poll_id variable:

 {{{(r'^(?P\d+)/vote/$', 'mysite.polls.views.vote')}}}

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



[Django] #10940: Omission in tutorial, part 4: generic views

2009-04-27 Thread Django
#10940: Omission in tutorial, part 4: generic views
---+
 Reporter:  zpearce|   Owner:  nobody
   Status:  new|   Milestone:
Component:  Documentation  | Version:  SVN   
 Keywords:  tutorial, generic view, object_id  |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 When refactoring the poll app for generic views, no mention is made of the
 need to change one of the parameters passed into the vote() view from
 poll_id to object_id.

 Original:

 def vote(request, poll_id):
 ...snip...

 Should be:

 def vote(request, object_id):
 ...etc...

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