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

Test cleanup

This commit is contained in:
jeremystretch
2022-05-13 15:34:01 -04:00
parent 6ff2e55ce4
commit 951627093c
3 changed files with 4 additions and 4 deletions

View File

@@ -2792,8 +2792,8 @@ class PathTraceView(generic.ObjectView):
total_length, is_definitive = path.get_total_length() if path else (None, False)
# Determine the path to the SVG trace image
api_viewname = f"{path.origin._meta.app_label}-api:{path.origin._meta.model_name}-trace"
svg_url = f"{reverse(api_viewname, kwargs={'pk': path.origin.pk})}?render=svg"
api_viewname = f"{path.origin_type.app_label}-api:{path.origin_type.model}-trace"
svg_url = f"{reverse(api_viewname, kwargs={'pk': path.origins[0].pk})}?render=svg"
return {
'path': path,