1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add CablePath.get_path() to prefetch path nodes

This commit is contained in:
Jeremy Stretch
2020-10-30 13:32:10 -04:00
parent f82e2a8d20
commit 70e966923a
5 changed files with 37 additions and 16 deletions

View File

@@ -2049,7 +2049,7 @@ class PathTraceView(ObjectView):
return render(request, 'dcim/cable_trace.html', {
'obj': obj,
'path': path,
'path': obj.trace(),
'related_paths': related_paths,
'total_length': path.get_total_length(),
})