1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Include action buttons on contact assignments table

This commit is contained in:
jeremystretch
2021-11-04 14:01:07 -04:00
parent 803e0bfe72
commit e4b0359b8e
3 changed files with 17 additions and 8 deletions

View File

@ -160,8 +160,12 @@ class ContactAssignmentTable(BaseTable):
role = tables.Column(
linkify=True
)
actions = ButtonsColumn(
model=ContactAssignment,
buttons=('edit', 'delete')
)
class Meta(BaseTable.Meta):
model = ContactAssignment
fields = ('pk', 'content_type', 'object', 'contact', 'role', 'priority')
default_columns = ('pk', 'object', 'contact', 'role', 'priority')
fields = ('pk', 'content_type', 'object', 'contact', 'role', 'priority', 'actions')
default_columns = ('pk', 'content_type', 'object', 'contact', 'role', 'priority', 'actions')