forms: pass proper **attrs when building single select widget (#48549)

This commit is contained in:
Frédéric Péters 2020-11-16 09:49:15 +01:00
parent 94b74b29c3
commit 272b83b3be
1 changed files with 1 additions and 1 deletions

View File

@ -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'