mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -06:00
10201 fix cable terminations edit
This commit is contained in:
parent
ab9c253310
commit
38e106c22c
@ -465,6 +465,7 @@ class CablePath(models.Model):
|
||||
if not terminations:
|
||||
return None
|
||||
|
||||
terminations = [t for t in terminations if t.link is None]
|
||||
# Ensure all originating terminations are attached to the same link
|
||||
if len(terminations) > 1:
|
||||
assert all(t.link == terminations[0].link for t in terminations[1:])
|
||||
|
Loading…
Reference in New Issue
Block a user