From e9fb91b197c32b07a54c4f3ab1d09d6292f13829 Mon Sep 17 00:00:00 2001 From: Daniel Sheppard Date: Tue, 24 Nov 2020 08:41:48 -0600 Subject: [PATCH] Fixes: #5374 - Fix exception thrown when tracing mid-point --- docs/release-notes/version-2.10.md | 1 + netbox/dcim/views.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/version-2.10.md b/docs/release-notes/version-2.10.md index 9607fcf40..6f0193cde 100644 --- a/docs/release-notes/version-2.10.md +++ b/docs/release-notes/version-2.10.md @@ -5,6 +5,7 @@ ### Bug Fixes * [#5358](https://github.com/netbox-community/netbox/issues/5358) - Fix user table configuration for VM interfaces +* [#5374](https://github.com/netbox-community/netbox/issues/5374) - Fix exception thrown when tracing mid-point --- diff --git a/netbox/dcim/views.py b/netbox/dcim/views.py index 0df8d818d..69dfe80a2 100644 --- a/netbox/dcim/views.py +++ b/netbox/dcim/views.py @@ -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'))