Explorar o código

Fixes: #18744 Add Contact link as hyperlink (#18847)

* contact link as hyperlink

* fix(lint) add missing blank lines

* simplify by using lambda function
Antoine Keranflec'h hai 1 ano
pai
achega
a9fd191086
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      netbox/tenancy/tables/contacts.py

+ 2 - 1
netbox/tenancy/tables/contacts.py

@@ -126,7 +126,8 @@ class ContactAssignmentTable(NetBoxTable):
     )
     contact_link = tables.Column(
         accessor=Accessor('contact__link'),
-        verbose_name=_('Contact Link')
+        verbose_name=_('Contact Link'),
+        linkify=lambda value: value,
     )
     contact_description = tables.Column(
         accessor=Accessor('contact__description'),