Net name field is not required when creating port

Add required=False to network name field to create port
form when creating port.

Change-Id: Ie4575345e6cf948c931feb4619c88fcc5358995d
Closes-bug: #1423335
This commit is contained in:
liyingjun 2015-02-19 10:08:40 +08:00
parent b7956c9c65
commit e67d914762
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ LOG = logging.getLogger(__name__)
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'}))