Просмотр исходного кода

Fixes #6060: Fix exception on cable trace in UI

Jeremy Stretch 4 лет назад
Родитель
Сommit
8eca7377a5
2 измененных файлов с 9 добавлено и 1 удалено
  1. 8 0
      docs/release-notes/version-2.10.md
  2. 1 1
      netbox/dcim/views.py

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

@@ -1,5 +1,13 @@
 # NetBox v2.10
 
+## v2.10.8 (FUTURE)
+
+### Bug Fixes
+
+* [#6060](https://github.com/netbox-community/netbox/issues/6060) - Fix exception on cable trace in UI (regression from #5650)
+
+---
+
 ## v2.10.7 (2021-03-25)
 
 ### Enhancements

+ 1 - 1
netbox/dcim/views.py

@@ -2135,7 +2135,7 @@ class PathTraceView(generic.ObjectView):
                 path = related_paths.first()
 
         # Get the total length of the cable and whether the length is definitive (fully defined)
-        total_length, is_definitive = path.get_total_length if path else (None, False)
+        total_length, is_definitive = path.get_total_length() if path else (None, False)
 
         return {
             'path': path,