summaryrefslogtreecommitdiff
path: root/tests/admin_views
diff options
context:
space:
mode:
authorTom Carrick <tom@carrick.eu>2020-07-14 13:32:24 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-09-14 08:41:59 +0200
commitbcc2befd0e9c1885e45b46d0b0bcdc11def8b249 (patch)
tree59fab69a3182286da87fcd6fe05a8ce0f4277a5a /tests/admin_views
parent71ae1ab0123582cc5bfe0f7d5f4cc19a9412f396 (diff)
downloaddjango-bcc2befd0e9c1885e45b46d0b0bcdc11def8b249.tar.gz
Fixed #31789 -- Added a new headers interface to HttpResponse.
Diffstat (limited to 'tests/admin_views')
-rw-r--r--tests/admin_views/tests.py2
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')