mirror of
https://github.com/django/django.git
synced 2025-03-12 10:22:37 +00:00
Added novalidate HTML attribute to ModelAdmin.add_view() and change_view() tests.
This commit is contained in:
parent
38e2fdf1b0
commit
b7093860df
@ -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())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user