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:
committed by
Claude Paroz
parent
3a002db6f1
commit
e94f405d94
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user