mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Handle split paths
This commit is contained in:
parent
0e41bc48b7
commit
75ddc63466
@ -58,6 +58,9 @@ class PathEndpointMixin(object):
|
||||
path = []
|
||||
|
||||
for near_end, cable, far_end in obj.trace():
|
||||
if near_end is None:
|
||||
# Split paths
|
||||
break
|
||||
|
||||
# Serialize each object
|
||||
serializer_a = get_serializer_for_model(near_end, prefix='Nested')
|
||||
|
Loading…
Reference in New Issue
Block a user