Skip to content

Commit

Permalink
Closes #14624: Add action object column to EventRuleTable
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Dec 28, 2023
1 parent 224484e commit 33af942
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions netbox/extras/tables/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ class EventRuleTable(NetBoxTable):
linkify=True
)
action_type = tables.Column(
verbose_name=_('Action Type'),
verbose_name=_('Type'),
)
action_object = tables.Column(
linkify=True,
verbose_name=_('Object'),
)
content_types = columns.ContentTypesColumn(
verbose_name=_('Content Types'),
Expand Down Expand Up @@ -305,12 +309,13 @@ class EventRuleTable(NetBoxTable):
class Meta(NetBoxTable.Meta):
model = EventRule
fields = (
'pk', 'id', 'name', 'enabled', 'description', 'action_type', 'content_types', 'type_create', 'type_update',
'type_delete', 'type_job_start', 'type_job_end', 'tags', 'created', 'last_updated',
'pk', 'id', 'name', 'enabled', 'description', 'action_type', 'action_object', 'content_types',
'type_create', 'type_update', 'type_delete', 'type_job_start', 'type_job_end', 'tags', 'created',
'last_updated',
)
default_columns = (
'pk', 'name', 'enabled', 'action_type', 'content_types', 'type_create', 'type_update', 'type_delete',
'type_job_start', 'type_job_end',
'pk', 'name', 'enabled', 'action_type', 'action_object', 'content_types', 'type_create', 'type_update',
'type_delete', 'type_job_start', 'type_job_end',
)


Expand Down

0 comments on commit 33af942

Please sign in to comment.