mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #25165 -- Removed inline JavaScript from the admin.
This allows setting a Content-Security-Policy HTTP header (refs #15727). Special thanks to blighj, the original author of this patch.
This commit is contained in:
committed by
Tim Graham
parent
105028eec6
commit
d638cdc42a
@@ -74,7 +74,6 @@ class AdminCustomUrlsTest(TestCase):
|
||||
"description": "Description of added action",
|
||||
}
|
||||
response = self.client.post(reverse('admin_custom_urls:admin_custom_urls_action_add'), post_data)
|
||||
self.assertContains(response, 'dismissAddRelatedObjectPopup')
|
||||
self.assertContains(response, 'Action added through a popup')
|
||||
|
||||
def test_admin_URLs_no_clash(self):
|
||||
|
||||
Reference in New Issue
Block a user