mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 00:15:17 -06:00
Fix parent reference
This commit is contained in:
parent
1c2e5525ff
commit
704f9abbf6
@ -520,7 +520,8 @@ class CablePath(models.Model):
|
|||||||
|
|
||||||
# All mid-span terminations must all be attached to the same device
|
# All mid-span terminations must all be attached to the same device
|
||||||
if not isinstance(terminations[0], PathEndpoint):
|
if not isinstance(terminations[0], PathEndpoint):
|
||||||
assert all(t.parent == terminations[0].parent for t in terminations[1:])
|
assert all(isinstance(t, type(terminations[0])) for t in terminations[1:])
|
||||||
|
assert all(t.parent_object == terminations[0].parent_object for t in terminations[1:])
|
||||||
|
|
||||||
# Check for a split path (e.g. rear port fanning out to multiple front ports with
|
# Check for a split path (e.g. rear port fanning out to multiple front ports with
|
||||||
# different cables attached)
|
# different cables attached)
|
||||||
|
Loading…
Reference in New Issue
Block a user