#18558: Supply `url` property to `HttpResponseRedirect` and
`HttpResponsePermanentRedirect`
-------------------------------------+-------------------------------------
     Reporter:  coolRR               |                    Owner:  claudep
         Type:  New feature          |                   Status:  closed
    Component:  HTTP handling        |                  Version:  master
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
    Has patch:  1                    |  checkin
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by tevans):

 Hi, I think this change is incorrect.

 It makes HttpResponse(status=302, content='Foo') behave differently to
 HttpResponseRedirect(content='Foo').

 This can be seen by using the test client, and asking it to follow
 redirects. It will attempt to access the url property on the response, but
 because the response is a redirect that is not derived from
 HttpResponseRedirectBase, this will fail.

--
Ticket URL: <https://code.djangoproject.com/ticket/18558#comment:12>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.467cf3a5b2ab94d91714e2948f2201fa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to