From 450615e0bb0cbec80213fa0e7011be316f39f03a Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 16 Mar 2020 14:29:01 -0400 Subject: [PATCH] Change IPAddressForm.nat_vrf to DynamicModelChoiceField --- netbox/ipam/forms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netbox/ipam/forms.py b/netbox/ipam/forms.py index 9c2d1323e..7a4373fb0 100644 --- a/netbox/ipam/forms.py +++ b/netbox/ipam/forms.py @@ -606,12 +606,11 @@ class IPAddressForm(BootstrapMixin, TenancyForm, ReturnURLForm, CustomFieldModel } ) ) - nat_vrf = forms.ModelChoiceField( + nat_vrf = DynamicModelChoiceField( queryset=VRF.objects.all(), required=False, label='VRF', widget=APISelect( - api_url="/api/ipam/vrfs/", filter_for={ 'nat_inside': 'vrf_id' }