2
0
Эх сурвалжийг харах

Closes #14092: Remove backward compatibility for importing extras.plugins

Jeremy Stretch 2 жил өмнө
parent
commit
a5fa30e851

+ 0 - 9
netbox/extras/plugins/__init__.py

@@ -1,9 +0,0 @@
-from .navigation import *
-from .registration import *
-from .templates import *
-from .utils import *
-from netbox.plugins import PluginConfig
-
-
-# TODO: Remove in v4.0
-warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning)

+ 0 - 7
netbox/extras/plugins/navigation.py

@@ -1,7 +0,0 @@
-import warnings
-
-from netbox.plugins.navigation import *
-
-
-# TODO: Remove in v4.0
-warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning)

+ 0 - 7
netbox/extras/plugins/registration.py

@@ -1,7 +0,0 @@
-import warnings
-
-from netbox.plugins.registration import *
-
-
-# TODO: Remove in v4.0
-warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning)

+ 0 - 7
netbox/extras/plugins/templates.py

@@ -1,7 +0,0 @@
-import warnings
-
-from netbox.plugins.templates import *
-
-
-# TODO: Remove in v4.0
-warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning)

+ 0 - 7
netbox/extras/plugins/urls.py

@@ -1,7 +0,0 @@
-import warnings
-
-from netbox.plugins.urls import *
-
-
-# TODO: Remove in v4.0
-warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning)

+ 0 - 7
netbox/extras/plugins/utils.py

@@ -1,7 +0,0 @@
-import warnings
-
-from netbox.plugins.utils import *
-
-
-# TODO: Remove in v4.0
-warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning)

+ 0 - 7
netbox/extras/plugins/views.py

@@ -1,7 +0,0 @@
-import warnings
-
-from netbox.plugins.views import *
-
-
-# TODO: Remove in v4.0
-warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning)