summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHiroki Kiyohara <hirokiky@gmail.com>2013-02-13 09:55:43 +0100
committerClaude Paroz <claude@2xlibre.net>2013-02-13 10:29:32 +0100
commite94f405d9499d310ef58b7409a98759a5f5512b0 (patch)
tree27d7c6443029cfb2957478d13dce02f5f2580348 /docs
parent3a002db6f1ef98d04634911808f9cf1b8e9dceff (diff)
Fixed #18558 -- Added url property to HttpResponseRedirect*
Thanks coolRR for the report.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/request-response.txt7
-rw-r--r--docs/releases/1.6.txt4
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 717995aea2..30f5e87100 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -746,6 +746,13 @@ types of HTTP responses. Like ``HttpResponse``, these subclasses live in
domain (e.g. ``'/search/'``). See :class:`HttpResponse` for other optional
constructor arguments. Note that this returns an HTTP status code 302.
+ .. attribute:: HttpResponseRedirect.url
+
+ .. versionadded:: 1.6
+
+ This read-only attribute represents the URL the response will redirect
+ to (equivalent to the ``Location`` response header).
+
.. class:: HttpResponsePermanentRedirect
Like :class:`HttpResponseRedirect`, but it returns a permanent redirect
diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt
index 5d615177f4..60537aca53 100644
--- a/docs/releases/1.6.txt
+++ b/docs/releases/1.6.txt
@@ -68,6 +68,10 @@ Minor features
:class:`~django.views.generic.edit.DeletionMixin` is now interpolated with
its ``object``\'s ``__dict__``.
+* :class:`~django.http.HttpResponseRedirect` and
+ :class:`~django.http.HttpResponsePermanentRedirect` now provide an ``url``
+ attribute (equivalent to the URL the response will redirect to).
+
Backwards incompatible changes in 1.6
=====================================