From 6a92419490f45479a1b469c87cd63eebf1808789 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 16 Jul 2018 13:29:57 -0400 Subject: [PATCH] Link to related object if changed object has no URL --- netbox/extras/tables.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox/extras/tables.py b/netbox/extras/tables.py index 9f983583a..dd73bfe3e 100644 --- a/netbox/extras/tables.py +++ b/netbox/extras/tables.py @@ -41,6 +41,8 @@ OBJECTCHANGE_ACTION = """ OBJECTCHANGE_OBJECT = """ {% if record.action != 3 and record.changed_object.get_absolute_url %} {{ record.object_repr }} +{% elif record.action != 3 and record.related_object.get_absolute_url %} + {{ record.object_repr }} {% else %} {{ record.object_repr }} {% endif %}