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

View File

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