Ver Fonte

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 há 1 ano atrás
pai
commit
a9fd191086
1 ficheiros alterados com 2 adições e 1 exclusões
  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'),