1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #21177 -- Made resolve_url support relative URLs.

This fixes redirecting to relative URLs with django.shortcuts.redirect.
This commit is contained in:
Antoine Catton
2014-02-13 20:48:44 -07:00
committed by Tim Graham
parent f3805f5c52
commit e3d0790bd0
4 changed files with 24 additions and 2 deletions

View File

@@ -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
^^^^^