mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* Closes #15042: Move model registration logic to AppConfigs * Refactor register_model() to accept multiple models
This commit is contained in:
@ -5,4 +5,8 @@ class ExtrasConfig(AppConfig):
|
||||
name = "extras"
|
||||
|
||||
def ready(self):
|
||||
from netbox.models.features import register_models
|
||||
from . import dashboard, lookups, search, signals
|
||||
|
||||
# Register models
|
||||
register_models(*self.get_models())
|
||||
|
Reference in New Issue
Block a user