Merge "Net name field is not required when creating port"

This commit is contained in:
Jenkins 2015-04-14 11:31:57 +00:00 committed by Gerrit Code Review
commit d6824ae148
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ VNIC_TYPES = [('normal', _('Normal')), ('direct', _('Direct')),
class CreatePort(forms.SelfHandlingForm):
network_name = forms.CharField(label=_("Network Name"),
widget=forms.TextInput(
attrs={'readonly': 'readonly'}))
attrs={'readonly': 'readonly'}),
required=False)
network_id = forms.CharField(label=_("Network ID"),
widget=forms.TextInput(
attrs={'readonly': 'readonly'}))