[PR #10660] [CLOSED] Closes #10659: Import signals.py from Plugin #13670

Closed
opened 2025-12-29 23:20:10 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/10660
Author: @Selfmade-RuLeZ
Created: 10/15/2022
Status: Closed

Base: developHead: develop


📝 Commits (1)

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 netbox/extras/plugins/__init__.py (+6 -0)

📄 Description

This pull request uses the importlib.import_module function from Python to import the signals module from a plugin. This registers the receiver functions to receive signals from django. Maybe someone should add a small documentation page for signal development within plugins.

Fixes: #10659

  • Implement changes in extras.plugins.__init__.py
  • Update documentation

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/10660 **Author:** [@Selfmade-RuLeZ](https://github.com/Selfmade-RuLeZ) **Created:** 10/15/2022 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (1) - [`656bd3b`](https://github.com/netbox-community/netbox/commit/656bd3b530c9c30a306e969320a45976f0dee35c) Closes #10659: Import signals.py from Plugin ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/plugins/__init__.py` (+6 -0) </details> ### 📄 Description This pull request uses the importlib.import_module function from Python to import the signals module from a plugin. This registers the receiver functions to receive signals from django. Maybe someone should add a small documentation page for signal development within plugins. <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WE BE CLOSED AUTOMATICALLY. Specify your assigned issue number on the line below. --> ### Fixes: #10659 <!-- Please include a summary of the proposed changes below. --> - [X] Implement changes in `extras.plugins.__init__.py` - [ ] Update documentation --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:20:10 +01:00
adam closed this issue 2025-12-29 23:20:10 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13670