mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-20 20:32:25 -06:00
* Closes #15042: Move model registration logic to AppConfigs * Refactor register_model() to accept multiple models
This commit is contained in:
@@ -6,4 +6,8 @@ class CircuitsConfig(AppConfig):
|
||||
verbose_name = "Circuits"
|
||||
|
||||
def ready(self):
|
||||
from netbox.models.features import register_models
|
||||
from . import signals, search
|
||||
|
||||
# Register models
|
||||
register_models(*self.get_models())
|
||||
|
||||
Reference in New Issue
Block a user