#3499: Add a "redirect_to" attribute (similar to status_code) to
HttpResponseRedirect  and HttpResponsePermanentRedirect to help with
testing
--------------------------------------------------+-------------------------
   Reporter:  [EMAIL PROTECTED]                   |                Owner:  
nobody        
     Status:  closed                              |            Component:  Core 
framework
    Version:  SVN                                 |           Resolution:  
wontfix       
   Keywords:  HttpResponseRedirect , redirect_to  |                Stage:  
Accepted      
  Has_patch:  1                                   |           Needs_docs:  0    
         
Needs_tests:  0                                   |   Needs_better_patch:  0    
         
--------------------------------------------------+-------------------------
Changes (by mtredinnick):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 I don't think this is worth it. Firstly, it's a core change just for tests
 and for something you can already do. Secondly, you would still need to
 test that it's some kind of redirect, because {{{redirect_to}}} will only
 be on certain types of responses.

 Finally, {{{assertRedirect()}}} seems to already provide a handy helper
 for all this.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3499#comment:5>
Django Code <http://code.djangoproject.com/>
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to