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
This commit is contained in:
zhurong 2017-08-14 14:58:07 +08:00
parent 9ba83a77ad
commit e7e99b39fc
1 changed files with 1 additions and 1 deletions

View File

@ -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):