Fixes: #5374 - Fix exception thrown when tracing mid-point

This commit is contained in:
Daniel Sheppard 2020-11-24 08:41:48 -06:00
parent d78f116448
commit 6d062ef42d
2 changed files with 2 additions and 1 deletions

View File

@ -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
---

View File

@ -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'))