Skip to content

Commit ad95760

Browse files
abhi1693jeremystretch
authored andcommitted
adds contact group on contact assignment table #14221
1 parent 57bf2a2 commit ad95760

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

netbox/tenancy/tables/contacts.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ class ContactAssignmentTable(NetBoxTable):
102102
verbose_name=_('Role'),
103103
linkify=True
104104
)
105+
contact_group = tables.Column(
106+
accessor=Accessor('contact__group'),
107+
verbose_name=_('Group'),
108+
linkify=True
109+
)
105110
contact_title = tables.Column(
106111
accessor=Accessor('contact__title'),
107112
verbose_name=_('Contact Title')
@@ -137,7 +142,8 @@ class Meta(NetBoxTable.Meta):
137142
model = ContactAssignment
138143
fields = (
139144
'pk', 'content_type', 'object', 'contact', 'role', 'priority', 'contact_title', 'contact_phone',
140-
'contact_email', 'contact_address', 'contact_link', 'contact_description', 'tags', 'actions'
145+
'contact_email', 'contact_address', 'contact_link', 'contact_description', 'contact_group', 'tags',
146+
'actions'
141147
)
142148
default_columns = (
143149
'pk', 'content_type', 'object', 'contact', 'role', 'priority', 'contact_email', 'contact_phone'

0 commit comments

Comments
 (0)