mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
This commit is contained in:
parent
67480dcf4f
commit
092769da7e
@ -20,7 +20,6 @@ from netbox.registry import registry
|
||||
from netbox.signals import post_clean
|
||||
from utilities.json import CustomFieldJSONEncoder
|
||||
from utilities.serialization import serialize_object
|
||||
from utilities.views import register_model_view
|
||||
|
||||
__all__ = (
|
||||
'BookmarksMixin',
|
||||
@ -640,6 +639,8 @@ def register_models(*models):
|
||||
|
||||
register_model() should be called for each relevant model under the ready() of an app's AppConfig class.
|
||||
"""
|
||||
from utilities.views import register_model_view
|
||||
|
||||
for model in models:
|
||||
app_label, model_name = model._meta.label_lower.split('.')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user