diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2016-03-28 11:02:04 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-04-21 19:16:38 -0400 |
| commit | ec6121693f112ae33b653b4364e812722d2eb567 (patch) | |
| tree | b791f1345a114d07657a3d226d1c5ff4b1e3f369 /tests/modeladmin | |
| parent | 4d1c229ee5cb210e8b592a8d9c87d4a66864328e (diff) | |
Fixed #22383 -- Added support for HTML5 required attribute on required form fields.
Diffstat (limited to 'tests/modeladmin')
| -rw-r--r-- | tests/modeladmin/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py index 0de3fb5925..990ed9ab32 100644 --- a/tests/modeladmin/tests.py +++ b/tests/modeladmin/tests.py @@ -359,7 +359,7 @@ class ModelAdminTests(TestCase): self.assertHTMLEqual( str(form["main_band"]), '<div class="related-widget-wrapper">' - '<select name="main_band" id="id_main_band">' + '<select name="main_band" id="id_main_band" required>' '<option value="" selected="selected">---------</option>' '<option value="%d">The Beatles</option>' '<option value="%d">The Doors</option>' @@ -380,7 +380,7 @@ class ModelAdminTests(TestCase): self.assertHTMLEqual( str(form["main_band"]), '<div class="related-widget-wrapper">' - '<select name="main_band" id="id_main_band">' + '<select name="main_band" id="id_main_band" required>' '<option value="" selected="selected">---------</option>' '<option value="%d">The Doors</option>' '</select></div>' % self.band.id |
