Added novalidate HTML attribute to ModelAdmin.add_view() and change_view() tests.

This commit is contained in:
Jon Dufresne 2020-03-13 06:26:06 -07:00 committed by Mariusz Felisiak
parent 38e2fdf1b0
commit b7093860df
1 changed files with 2 additions and 2 deletions

View File

@ -5920,7 +5920,7 @@ class AdminKeepChangeListFiltersTests(TestCase):
# Check the form action. # Check the form action.
form_action = re.search( form_action = re.search(
'<form action="(.*?)" method="post" id="user_form".*?>', '<form action="(.*?)" method="post" id="user_form" novalidate>',
response.content.decode() response.content.decode()
) )
self.assertURLEqual(form_action.group(1), '?%s' % self.get_preserved_filters_querystring()) self.assertURLEqual(form_action.group(1), '?%s' % self.get_preserved_filters_querystring())
@ -5972,7 +5972,7 @@ class AdminKeepChangeListFiltersTests(TestCase):
# Check the form action. # Check the form action.
form_action = re.search( form_action = re.search(
'<form action="(.*?)" method="post" id="user_form".*?>', '<form action="(.*?)" method="post" id="user_form" novalidate>',
response.content.decode() response.content.decode()
) )
self.assertURLEqual(form_action.group(1), '?%s' % self.get_preserved_filters_querystring()) self.assertURLEqual(form_action.group(1), '?%s' % self.get_preserved_filters_querystring())