mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes: #5374 - Fix exception thrown when tracing mid-point
This commit is contained in:
@ -2076,7 +2076,7 @@ class PathTraceView(generic.ObjectView):
|
||||
|
||||
# Otherwise, find all CablePaths which traverse the specified object
|
||||
else:
|
||||
related_paths = CablePath.objects.filter(path__contains=obj).prefetch_related('origin')
|
||||
related_paths = CablePath.objects.filter(path__contains=instance).prefetch_related('origin')
|
||||
# Check for specification of a particular path (when tracing pass-through ports)
|
||||
try:
|
||||
path_id = int(request.GET.get('cablepath_id'))
|
||||
|
Reference in New Issue
Block a user