14132 fixes

This commit is contained in:
Arthur 2023-10-30 15:10:15 -07:00
parent 38d46afdbe
commit 498ac5e44f
2 changed files with 3 additions and 2 deletions

View File

@ -261,7 +261,7 @@ class EventRuleForm(NetBoxModelForm):
content_types = ContentTypeMultipleChoiceField(
label=_('Content types'),
queryset=ContentType.objects.all(),
limit_choices_to=FeatureQuery('eventrules')
limit_choices_to=FeatureQuery('webhooks')
)
fieldsets = (
@ -271,7 +271,7 @@ class EventRuleForm(NetBoxModelForm):
)
class Meta:
model = Webhook
model = EventRule
fields = '__all__'
labels = {
'type_create': _('Creations'),

View File

@ -325,6 +325,7 @@ OPERATIONS_MENU = Menu(
label=_('Integrations'),
items=(
get_model_item('core', 'datasource', _('Data Sources')),
get_model_item('extras', 'eventrule', _('Event Rules')),
get_model_item('extras', 'webhook', _('Webhooks')),
),
),