diff options
Diffstat (limited to 'tests/admin_views')
| -rw-r--r-- | tests/admin_views/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 61894de9f0..89ae04ff56 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -2964,7 +2964,7 @@ class AdminViewStringPrimaryKeyTest(TestCase): ) self.assertEqual(response.status_code, 302) # temporary redirect - self.assertIn('/123_2Fhistory/', response['location']) # PK is quoted + self.assertIn('/123_2Fhistory/', response.headers['location']) # PK is quoted @override_settings(ROOT_URLCONF='admin_views.urls') |
