mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #27256 -- Changed Select widget's selected attribute to use HTML5 boolean syntax.
This commit is contained in:
parent
42dc9d0400
commit
2c716c1dc7
18 changed files with 126 additions and 125 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue