Jelajahi Sumber

Change IPAddressForm.nat_vrf to DynamicModelChoiceField

Jeremy Stretch 6 tahun lalu
induk
melakukan
450615e0bb
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      netbox/ipam/forms.py

+ 1 - 2
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'
             }