1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

Fixed #18558 -- Added url property to HttpResponseRedirect*

Thanks coolRR for the report.
This commit is contained in:
Hiroki Kiyohara
2013-02-13 09:55:43 +01:00
committed by Claude Paroz
parent 3a002db6f1
commit e94f405d94
15 changed files with 82 additions and 66 deletions

View File

@@ -601,7 +601,7 @@ class TransactionTestCase(SimpleTestCase):
" code was %d (expected %d)" %
(response.status_code, status_code))
url = response['Location']
url = response.url
scheme, netloc, path, query, fragment = urlsplit(url)
redirect_response = response.client.get(path, QueryDict(query))