summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAntoine Catton <devel@antoine.catton.fr>2014-02-13 20:48:44 -0700
committerTim Graham <timograham@gmail.com>2014-02-14 17:58:03 -0500
commite3d0790bd0b036ed3589659c1196e2c571e3dd8e (patch)
tree444e40bb570bab491384187d3b421c7c7383fde5 /docs
parentf3805f5c529d788f72f68d80b492d059cc62e6b2 (diff)
Fixed #21177 -- Made resolve_url support relative URLs.
This fixes redirecting to relative URLs with django.shortcuts.redirect.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.7.txt3
-rw-r--r--docs/topics/http/shortcuts.txt9
2 files changed, 10 insertions, 2 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt
index 7359e09ac1..1fe657dfc5 100644
--- a/docs/releases/1.7.txt
+++ b/docs/releases/1.7.txt
@@ -677,6 +677,9 @@ Requests
* The new :attr:`HttpRequest.scheme <django.http.HttpRequest.scheme>` attribute
specifies the scheme of the request (``http`` or ``https`` normally).
+* The shortcut :func:`redirect() <django.shortcuts.redirect>` now supports
+ relative URLs.
+
Tests
^^^^^
diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt
index c4f413e28c..454aba0ed0 100644
--- a/docs/topics/http/shortcuts.txt
+++ b/docs/topics/http/shortcuts.txt
@@ -203,10 +203,15 @@ If you want to override the :setting:`TEMPLATE_DIRS` setting, use the
<django.core.urlresolvers.reverse>` will be used to reverse-resolve the
name.
- * A URL, which will be used as-is for the redirect location.
+ * An absolute or relative URL, which will be used as-is for the redirect
+ location.
By default issues a temporary redirect; pass ``permanent=True`` to issue a
- permanent redirect
+ permanent redirect.
+
+ .. versionchanged:: 1.7
+
+ The ability to use relative URLs was added.
Examples
--------