Browse Source

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

Jenkins 4 years ago
parent
commit
d6824ae148
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      openstack_dashboard/dashboards/admin/networks/ports/forms.py

+ 2
- 1
openstack_dashboard/dashboards/admin/networks/ports/forms.py View File

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

Loading…
Cancel
Save