mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Miscellaneous cleanup
This commit is contained in:
@ -142,7 +142,6 @@ class CustomFieldBulkEditForm(BulkEditForm):
|
|||||||
self.fields[name] = field
|
self.fields[name] = field
|
||||||
# Annotate this as a custom field
|
# Annotate this as a custom field
|
||||||
self.custom_fields.append(name)
|
self.custom_fields.append(name)
|
||||||
print(self.nullable_fields)
|
|
||||||
|
|
||||||
|
|
||||||
class CustomFieldFilterForm(forms.Form):
|
class CustomFieldFilterForm(forms.Form):
|
||||||
|
@ -288,7 +288,7 @@ class IPAddressForm(BootstrapMixin, CustomFieldForm):
|
|||||||
class Meta:
|
class Meta:
|
||||||
model = IPAddress
|
model = IPAddress
|
||||||
fields = ['address', 'vrf', 'tenant', 'status', 'nat_inside', 'description']
|
fields = ['address', 'vrf', 'tenant', 'status', 'nat_inside', 'description']
|
||||||
widgets ={
|
widgets = {
|
||||||
'nat_inside': APISelect(api_url='/api/ipam/ip-addresses/?device_id={{nat_device}}', display_field='address')
|
'nat_inside': APISelect(api_url='/api/ipam/ip-addresses/?device_id={{nat_device}}', display_field='address')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user