#18558: Supply `url` property to `HttpResponseRedirect` and
`HttpResponsePermanentRedirect`
-------------------------------+--------------------
     Reporter:  coolRR         |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  HTTP handling  |    Version:  master
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  1
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 Currently the way to get the URL that a `HttpResponseRedirect` is
 redirecting to requires doing `response['Location']`. This is not so
 intuitive. There's no reason to remember the HTML header name when dealing
 with a redirect response.

 Instead I propose this property:

     url = property(lambda self: self['Location'])

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18558>
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 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