diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-03-13 06:26:06 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-03-16 06:36:45 +0100 |
| commit | b7093860df7bcdc3b8fafa9e6b206137da66d89b (patch) | |
| tree | 88df5e5bb46c3ccfdf76af8b29f28590ff9f6765 /tests/admin_views/tests.py | |
| parent | 38e2fdf1b077653f2461d1c52459b85a8a134a91 (diff) | |
Added novalidate HTML attribute to ModelAdmin.add_view() and change_view() tests.
Diffstat (limited to 'tests/admin_views/tests.py')
| -rw-r--r-- | tests/admin_views/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 4b4b118987..833a0cf2c8 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -5920,7 +5920,7 @@ class AdminKeepChangeListFiltersTests(TestCase): # Check the form action. form_action = re.search( - '<form action="(.*?)" method="post" id="user_form".*?>', + '<form action="(.*?)" method="post" id="user_form" novalidate>', response.content.decode() ) self.assertURLEqual(form_action.group(1), '?%s' % self.get_preserved_filters_querystring()) @@ -5972,7 +5972,7 @@ class AdminKeepChangeListFiltersTests(TestCase): # Check the form action. form_action = re.search( - '<form action="(.*?)" method="post" id="user_form".*?>', + '<form action="(.*?)" method="post" id="user_form" novalidate>', response.content.decode() ) self.assertURLEqual(form_action.group(1), '?%s' % self.get_preserved_filters_querystring()) |
