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

#14132: Simplify form logic for script EventRules

This commit is contained in:
Jeremy Stretch
2023-12-04 10:57:29 -05:00
parent cfc20f910e
commit 5d57e9863d
5 changed files with 23 additions and 24 deletions

View File

@@ -115,16 +115,15 @@ class EventRule(CustomFieldsMixin, ExportTemplatesMixin, TagsMixin, ChangeLogged
ct_field='action_object_type',
fk_field='action_object_id'
)
# internal (not show in UI) - used by scripts to store function name
action_parameters = models.JSONField(
blank=True,
null=True,
null=True
)
action_data = models.JSONField(
verbose_name=_('parameters'),
verbose_name=_('data'),
blank=True,
null=True,
help_text=_("Parameters to pass to the action.")
help_text=_("Additional data to pass to the action object")
)
comments = models.TextField(
verbose_name=_('comments'),