mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #31789 -- Added a new headers interface to HttpResponse.
This commit is contained in:
committed by
Mariusz Felisiak
parent
71ae1ab012
commit
bcc2befd0e
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user