Преглед изворни кода

Merge branch 'develop-2.10' of https://github.com/netbox-community/netbox into develop-2.10

Jeremy Stretch пре 5 година
родитељ
комит
e1911a624b
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      docs/release-notes/version-2.10.md
  2. 1 1
      netbox/dcim/views.py

+ 1 - 0
docs/release-notes/version-2.10.md

@@ -9,6 +9,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
 
 ---
 

+ 1 - 1
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'))