Skip to content

Commit 9d4932b

Browse files
committed
Fixes netbox-community#16061: Omit hidden fields from event rule form
1 parent e438ddb commit 9d4932b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

netbox/extras/forms/model_forms.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,7 @@ class EventRuleForm(NetBoxModelForm):
279279
FieldSet('name', 'description', 'object_types', 'enabled', 'tags', name=_('Event Rule')),
280280
FieldSet('type_create', 'type_update', 'type_delete', 'type_job_start', 'type_job_end', name=_('Events')),
281281
FieldSet('conditions', name=_('Conditions')),
282-
FieldSet(
283-
'action_type', 'action_choice', 'action_object_type', 'action_object_id', 'action_data',
284-
name=_('Action')
285-
),
282+
FieldSet('action_type', 'action_choice', 'action_data', name=_('Action')),
286283
)
287284

288285
class Meta:

0 commit comments

Comments
 (0)