Refs #27919 -- Passed ChoiceWidget.create_option() kwargs as expected.

This commit is contained in:
Tim Graham 2017-03-20 09:28:21 -04:00
parent 08972528c2
commit 6ff356e891
1 changed files with 2 additions and 2 deletions

View File

@ -576,8 +576,8 @@ class ChoiceWidget(Widget):
if selected is True and has_selected is False:
has_selected = True
subgroup.append(self.create_option(
name, subvalue, sublabel, selected, index, subindex,
attrs=attrs,
name, subvalue, sublabel, selected, index,
subindex=subindex, attrs=attrs,
))
if subindex is not None:
subindex += 1