10201 fix cable terminations edit

This commit is contained in:
Arthur 2022-12-08 17:51:45 -08:00
parent ab9c253310
commit 38e106c22c

View File

@ -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:])