Re: [Django] #10971: Test client response.redirect_chain documentation example missing follow argument

2009-05-09 Thread Django
#10971: Test client response.redirect_chain documentation example missing follow
argument
+---
  Reporter:  yourcelf   | Owner:  nobody
Status:  new| Milestone:
 Component:  Documentation  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Ready for checkin  | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by timo):

  * has_patch:  0 => 1
  * stage:  Unreviewed => Ready for checkin

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



Re: [Django] #10971: Test client response.redirect_chain documentation example missing follow argument

2009-04-30 Thread Django
#10971: Test client response.redirect_chain documentation example missing follow
argument
+---
  Reporter:  yourcelf   | Owner:  nobody
Status:  new| Milestone:
 Component:  Documentation  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Unreviewed | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by yourcelf):

  * needs_better_patch:  => 0
  * component:  Uncategorized => Documentation
  * needs_tests:  => 0
  * needs_docs:  => 0

-- 
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] #10971: Test client response.redirect_chain documentation example missing follow argument

2009-04-30 Thread Django
#10971: Test client response.redirect_chain documentation example missing follow
argument
---+
 Reporter:  yourcelf   |   Owner:  nobody
   Status:  new|   Milestone:
Component:  Uncategorized  | Version:  SVN   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 The documentation for the django test Client includes an example for
 showing redirect chains which is broken.

 The provided example:

 {{{
 >>> response = c.get('/redirect_me')
 >>> response.redirect_chain
 }}}

 results in:

 {{{
 AttributeError: 'HttpResponseRedirect' object has no attribute
 'redirect_chain'
 }}}

 This is because {{{follow}}} was not set to {{{True}}}.  The example
 should read:

 {{{
 >>> response = c.get('/redirect_me', follow=True)
 >>> response.redirect_chain
 [(u'http://testserver/next/', 302), (u'http://testserver/final/', 302)]
 }}}

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