Skip to content

Commit

Permalink
Merge "Add required to cidr field for 'Add Subnet'"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jun 24, 2015
2 parents 536b6d6 + 32f888f commit f1779d8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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. '
Expand Down

0 comments on commit f1779d8

Please sign in to comment.