Make net_config ChoiceField themable
Now net_config ChoiceField option value is null, this will cause create
env network filed always gives error: This filed is required.
This patch make net_config ChoiceField themable, will fix this error.
Change-Id: Iaf9b37dd9a2bdc8acffe911399d3e73641460349
Closes-Bug: #1710557
(cherry picked from commit e7e99b39fc
)
This commit is contained in:
parent
fbc13351e9
commit
06f00e3a25
|
@ -35,7 +35,7 @@ class CreateEnvironmentForm(horizon_forms.SelfHandlingForm):
|
|||
help_text=ENV_NAME_HELP_TEXT,
|
||||
max_length=255)
|
||||
|
||||
net_config = forms.ChoiceField(
|
||||
net_config = horizon_forms.ThemableChoiceField(
|
||||
label=_("Environment Default Network"))
|
||||
|
||||
def __init__(self, request, *args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue