forms: pass proper **attrs when building single select widget (#48549)
This commit is contained in:
parent
94b74b29c3
commit
272b83b3be
|
@ -966,7 +966,7 @@ class SingleSelectWidget(quixote.form.widget.SingleSelectWidget):
|
|||
attrs['aria-required'] = 'true'
|
||||
if self.attrs:
|
||||
attrs.update(self.attrs)
|
||||
tags = [htmltag("select", name=self.name, **self.attrs)]
|
||||
tags = [htmltag("select", name=self.name, **attrs)]
|
||||
for object, description, key, attrs in self.full_options:
|
||||
if self.is_selected(object):
|
||||
selected = 'selected'
|
||||
|
|
Loading…
Reference in New Issue