Make switched multiple choice field work

Due to horizon bug 1732260, ThemableCheckboxSelectMultiple seems
not to work as 'switched' field. The workaround is to replace it
with CheckboxSelectMultiple.

Change-Id: I763291ccbef1660415769fc66a940f7ecd11bbf6
Closes-Bug: #1747011
This commit is contained in:
Akihiro Motoki 2018-02-03 01:31:05 +09:00
parent e4ed12078b
commit dc938f032f
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class AddEndpointGroupAction(workflows.Action):
subnets = forms.MultipleChoiceField(
required=False,
label=_("Local System Subnets"),
widget=forms.ThemableCheckboxSelectMultiple(attrs={
widget=forms.CheckboxSelectMultiple(attrs={
'class': 'switched',
'data-switch-on': 'type',
'data-type-subnet': _("External System Subnets"),