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

Closes #14624: Add action object column to EventRuleTable

This commit is contained in:
Jeremy Stretch
2023-12-28 15:56:22 -05:00
parent 224484ebb6
commit 33af942571

View File

@ -275,7 +275,11 @@ class EventRuleTable(NetBoxTable):
linkify=True linkify=True
) )
action_type = tables.Column( action_type = tables.Column(
verbose_name=_('Action Type'), verbose_name=_('Type'),
)
action_object = tables.Column(
linkify=True,
verbose_name=_('Object'),
) )
content_types = columns.ContentTypesColumn( content_types = columns.ContentTypesColumn(
verbose_name=_('Content Types'), verbose_name=_('Content Types'),
@ -305,12 +309,13 @@ class EventRuleTable(NetBoxTable):
class Meta(NetBoxTable.Meta): class Meta(NetBoxTable.Meta):
model = EventRule model = EventRule
fields = ( fields = (
'pk', 'id', 'name', 'enabled', 'description', 'action_type', 'content_types', 'type_create', 'type_update', 'pk', 'id', 'name', 'enabled', 'description', 'action_type', 'action_object', 'content_types',
'type_delete', 'type_job_start', 'type_job_end', 'tags', 'created', 'last_updated', 'type_create', 'type_update', 'type_delete', 'type_job_start', 'type_job_end', 'tags', 'created',
'last_updated',
) )
default_columns = ( default_columns = (
'pk', 'name', 'enabled', 'action_type', 'content_types', 'type_create', 'type_update', 'type_delete', 'pk', 'name', 'enabled', 'action_type', 'action_object', 'content_types', 'type_create', 'type_update',
'type_job_start', 'type_job_end', 'type_delete', 'type_job_start', 'type_job_end',
) )