mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Handle split paths
This commit is contained in:
parent
a52cf93b2f
commit
11cd595f23
@ -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