From f2fd70bbb5a94e44d63fe298a47da21d2ff561fd Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 29 Sep 2025 10:36:30 -0400 Subject: [PATCH] Fixes #20441: Fix display of the "groups" column in contact assignments table --- netbox/tenancy/tables/contacts.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/netbox/tenancy/tables/contacts.py b/netbox/tenancy/tables/contacts.py index 60878633b8d..fb997914070 100644 --- a/netbox/tenancy/tables/contacts.py +++ b/netbox/tenancy/tables/contacts.py @@ -110,10 +110,10 @@ class ContactAssignmentTable(NetBoxTable): verbose_name=_('Role'), linkify=True ) - contact_group = tables.Column( - accessor=Accessor('contact__group'), - verbose_name=_('Group'), - linkify=True + contact_groups = columns.ManyToManyColumn( + accessor=Accessor('contact__groups'), + verbose_name=_('Groups'), + linkify_item=('tenancy:contactgroup', {'pk': tables.A('pk')}) ) contact_title = tables.Column( accessor=Accessor('contact__title'), @@ -152,7 +152,7 @@ class Meta(NetBoxTable.Meta): model = ContactAssignment fields = ( 'pk', 'object_type', 'object', 'contact', 'role', 'priority', 'contact_title', 'contact_phone', - 'contact_email', 'contact_address', 'contact_link', 'contact_description', 'contact_group', 'tags', + 'contact_email', 'contact_address', 'contact_link', 'contact_description', 'contact_groups', 'tags', 'actions' ) default_columns = (