summaryrefslogtreecommitdiff
path: root/tests/modeladmin
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2016-09-21 15:12:13 -0700
committerGitHub <noreply@github.com>2016-09-21 15:12:13 -0700
commit2c716c1dc721e74ef14b2ac25e3510024c79e070 (patch)
treef516f6d20140b8e7386894f5787c1731f6245670 /tests/modeladmin
parent42dc9d04006c0bdecba6e0c8a29038b01d5a62d7 (diff)
Fixed #27256 -- Changed Select widget's selected attribute to use HTML5 boolean syntax.
Diffstat (limited to 'tests/modeladmin')
-rw-r--r--tests/modeladmin/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py
index d375090151..e00b69b586 100644
--- a/tests/modeladmin/tests.py
+++ b/tests/modeladmin/tests.py
@@ -360,7 +360,7 @@ class ModelAdminTests(TestCase):
str(form["main_band"]),
'<div class="related-widget-wrapper">'
'<select name="main_band" id="id_main_band" required>'
- '<option value="" selected="selected">---------</option>'
+ '<option value="" selected>---------</option>'
'<option value="%d">The Beatles</option>'
'<option value="%d">The Doors</option>'
'</select></div>' % (band2.id, self.band.id)
@@ -381,7 +381,7 @@ class ModelAdminTests(TestCase):
str(form["main_band"]),
'<div class="related-widget-wrapper">'
'<select name="main_band" id="id_main_band" required>'
- '<option value="" selected="selected">---------</option>'
+ '<option value="" selected>---------</option>'
'<option value="%d">The Doors</option>'
'</select></div>' % self.band.id
)