Remove the extra required=True

Horizon form filed is 'required=True' bu default,
So remove the extra one.

Change-Id: Ib5178fc28dac95a7188c5d3056a6f0a42fcb59d1
This commit is contained in:
zhurong 2016-09-30 16:00:16 +08:00
parent 99e1b9fc6e
commit c4796734c5
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ from karbor_dashboard.api import karbor as karborclient
class CreateProtectionPlanForm(horizon_forms.SelfHandlingForm):
name = forms.CharField(label=_("Name"), required=True)
name = forms.CharField(label=_("Name"))
provider_id = forms.ChoiceField(label=_('Protection Provider'),
choices=[],
widget=forms.Select(attrs={