mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 13:38:16 -06:00
14132 fixes
This commit is contained in:
parent
38d46afdbe
commit
498ac5e44f
@ -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'),
|
||||
|
@ -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')),
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user