mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
5f159795dd
* Closes #15042: Move model registration logic to AppConfigs * Refactor register_model() to accept multiple models
14 lines
287 B
Python
14 lines
287 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class VPNConfig(AppConfig):
|
|
name = 'vpn'
|
|
verbose_name = 'VPN'
|
|
|
|
def ready(self):
|
|
from netbox.models.features import register_models
|
|
from . import search
|
|
|
|
# Register models
|
|
register_models(*self.get_models())
|