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