Răsfoiți Sursa

Fixes #4137: Disable occupied terminations when connecting a cable to a circuit

Jeremy Stretch 6 ani în urmă
părinte
comite
2ab382eec5
2 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 1 0
      docs/release-notes/version-2.7.md
  2. 2 1
      netbox/dcim/forms.py

+ 1 - 0
docs/release-notes/version-2.7.md

@@ -18,6 +18,7 @@
 * [#4099](https://github.com/netbox-community/netbox/issues/4099) - Linkify interfaces on global interfaces list
 * [#4108](https://github.com/netbox-community/netbox/issues/4108) - Avoid extraneous database queries when rendering search forms
 * [#4134](https://github.com/netbox-community/netbox/issues/4134) - Device power ports and outlets should inherit type from the parent device type
+* [#4137](https://github.com/netbox-community/netbox/issues/4137) - Disable occupied terminations when connecting a cable to a circuit
 
 ---
 

+ 2 - 1
netbox/dcim/forms.py

@@ -3613,7 +3613,8 @@ class ConnectCableToCircuitTerminationForm(BootstrapMixin, forms.ModelForm):
         widget=APISelect(
             api_url='/api/circuits/circuit-terminations/',
             disabled_indicator='cable',
-            display_field='term_side'
+            display_field='term_side',
+            full=True
         )
     )