Moved tenancy to separate panel on bulk IP creation form

This commit is contained in:
Jeremy Stretch
2017-05-12 12:04:06 -04:00
parent 5514b20933
commit a2b918b759
2 changed files with 9 additions and 3 deletions

View File

@@ -475,11 +475,11 @@ class IPAddressPatternForm(BootstrapMixin, forms.Form):
pattern = ExpandableIPAddressField(label='Address pattern')
class IPAddressBulkAddForm(BootstrapMixin, CustomFieldForm):
class IPAddressBulkAddForm(BootstrapMixin, TenancyForm, CustomFieldForm):
class Meta:
model = IPAddress
fields = ['address', 'status', 'vrf', 'tenant', 'description']
fields = ['address', 'status', 'vrf', 'description', 'tenant_group', 'tenant']
def __init__(self, *args, **kwargs):
super(IPAddressBulkAddForm, self).__init__(*args, **kwargs)