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

Merge branch 'develop' into develop-2.9

This commit is contained in:
Jeremy Stretch
2020-07-02 10:01:01 -04:00
23 changed files with 455 additions and 108 deletions

View File

@ -1915,7 +1915,7 @@ class CableTraceView(ObjectView):
def get(self, request, pk):
obj = get_object_or_404(self.queryset, pk=pk)
path, split_ends = obj.trace()
path, split_ends, position_stack = obj.trace()
total_length = sum(
[entry[1]._abs_length for entry in path if entry[1] and entry[1]._abs_length]
)
@ -1924,6 +1924,7 @@ class CableTraceView(ObjectView):
'obj': obj,
'trace': path,
'split_ends': split_ends,
'position_stack': position_stack,
'total_length': total_length,
})