mirror of https://github.com/django/django.git
Refs #27919 -- Passed ChoiceWidget.create_option() kwargs as expected.
This commit is contained in:
parent
08972528c2
commit
6ff356e891
|
@ -576,8 +576,8 @@ class ChoiceWidget(Widget):
|
||||||
if selected is True and has_selected is False:
|
if selected is True and has_selected is False:
|
||||||
has_selected = True
|
has_selected = True
|
||||||
subgroup.append(self.create_option(
|
subgroup.append(self.create_option(
|
||||||
name, subvalue, sublabel, selected, index, subindex,
|
name, subvalue, sublabel, selected, index,
|
||||||
attrs=attrs,
|
subindex=subindex, attrs=attrs,
|
||||||
))
|
))
|
||||||
if subindex is not None:
|
if subindex is not None:
|
||||||
subindex += 1
|
subindex += 1
|
||||||
|
|
Loading…
Reference in New Issue