Coverage for extras/apps.py: 100%
12 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
1from django.apps import AppConfig
4class ExtrasConfig(AppConfig):
5 name = "extras"
7 def ready(self):
8 from netbox.event_rules import register_event_rule_action
9 from netbox.models.features import register_models
11 from . import dashboard, lookups, search, signals # noqa: F401
12 from .event_rules import NotificationAction, ScriptAction, WebhookAction
14 # Register models
15 register_models(*self.get_models())
17 # Register core event rule actions
18 register_event_rule_action(WebhookAction, is_plugin_provided=False)
19 register_event_rule_action(ScriptAction, is_plugin_provided=False)
20 register_event_rule_action(NotificationAction, is_plugin_provided=False)