Explorar o código

update `api_url` with new interfaces endpoint.

Zach Moody %!s(int64=9) %!d(string=hai) anos
pai
achega
066a3b8b52
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/circuits/forms.py

+ 1 - 1
netbox/circuits/forms.py

@@ -192,7 +192,7 @@ class CircuitTerminationForm(BootstrapMixin, forms.ModelForm):
         required=False,
         required=False,
         label='Interface',
         label='Interface',
         widget=APISelect(
         widget=APISelect(
-            api_url='/api/dcim/devices/{{device}}/interfaces/?type=physical',
+            api_url='/api/dcim/interfaces/?device_id={{device}}&type=physical',
             disabled_indicator='is_connected'
             disabled_indicator='is_connected'
         )
         )
     )
     )