Fixes: #17072 - Make active links of phone and email in Contact Assignments table (#17233)

* Add linkify_email and apply with linkify_phone to ContactAssignmentTable

* Use EmailColumn instead of linkify_email
This commit is contained in:
bctiemann 2024-08-22 10:57:53 -04:00 committed by GitHub
parent 38a26a7908
commit 8903e4649c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,11 +113,12 @@ class ContactAssignmentTable(NetBoxTable):
)
contact_phone = tables.Column(
accessor=Accessor('contact__phone'),
verbose_name=_('Contact Phone')
verbose_name=_('Contact Phone'),
linkify=linkify_phone,
)
contact_email = tables.Column(
contact_email = tables.EmailColumn(
accessor=Accessor('contact__email'),
verbose_name=_('Contact Email')
verbose_name=_('Contact Email'),
)
contact_address = tables.Column(
accessor=Accessor('contact__address'),