1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +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

@@ -1641,7 +1641,7 @@ class SecureViewTests(TestCase):
response = self.client.get(shortcut_url, follow=False)
# Can't use self.assertRedirects() because User.get_absolute_url() is silly.
self.assertEqual(response.status_code, 302)
self.assertEqual(response['Location'], 'http://example.com/users/super/')
self.assertEqual(response.url, 'http://example.com/users/super/')
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))