From 96eaea7db9ea380304d332e7155db20c94324f27 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 3 Nov 2016 14:15:57 -0400 Subject: [PATCH] Miscellaneous cleanup --- netbox/extras/forms.py | 1 - netbox/ipam/forms.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/netbox/extras/forms.py b/netbox/extras/forms.py index 6780cfba7..d7a37dacd 100644 --- a/netbox/extras/forms.py +++ b/netbox/extras/forms.py @@ -142,7 +142,6 @@ class CustomFieldBulkEditForm(BulkEditForm): self.fields[name] = field # Annotate this as a custom field self.custom_fields.append(name) - print(self.nullable_fields) class CustomFieldFilterForm(forms.Form): diff --git a/netbox/ipam/forms.py b/netbox/ipam/forms.py index 0ac4ac551..958a99a3f 100644 --- a/netbox/ipam/forms.py +++ b/netbox/ipam/forms.py @@ -288,7 +288,7 @@ class IPAddressForm(BootstrapMixin, CustomFieldForm): class Meta: model = IPAddress 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') }