mirror of
https://github.com/django/django.git
synced 2025-03-20 14:20:44 +00:00
[1.11.x] Refs #27919 -- Passed ChoiceWidget.create_option() kwargs as expected.
Backport of 6ff356e891502f3da20f51299f45f4b95d72edd5 from master
This commit is contained in:
parent
4f02adbf53
commit
524f1e7051
@ -595,8 +595,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…
x
Reference in New Issue
Block a user