mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Avoided direct styles in admin templates.
Direct styles might be forbidden by Content Security Policies.
This commit is contained in:
@@ -1170,7 +1170,7 @@ class AdminCustomTemplateTests(AdminViewBasicTestCase):
|
||||
# When a site has multiple passwords in the browser's password manager,
|
||||
# a browser pop up asks which user the new password is for. To prevent
|
||||
# this, the username is added to the change password form.
|
||||
self.assertContains(response, '<input type="text" name="username" value="super" style="display: none">')
|
||||
self.assertContains(response, '<input type="text" name="username" value="super" class="hidden">')
|
||||
|
||||
def test_extended_bodyclass_template_index(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user