Merge "Add required to cidr field for 'Add Subnet'"

This commit is contained in:
Jenkins 2015-06-24 19:54:31 +00:00 committed by Gerrit Code Review
commit f1779d8cef

View File

@ -34,6 +34,10 @@ class CreateSubnetInfoAction(network_workflows.CreateSubnetInfoAction):
widget=forms.HiddenInput())
msg = _('Specify "Network Address"')
def __init__(self, request, *args, **kwargs):
super(CreateSubnetInfoAction, self).__init__(request, *args, **kwargs)
self.fields['cidr'].required = True
class Meta(object):
name = _("Subnet")
help_text = _('Create a subnet associated with the network. '