diff --git a/netbox_dns/models.py b/netbox_dns/models.py index 13cfed31..baefae85 100644 --- a/netbox_dns/models.py +++ b/netbox_dns/models.py @@ -43,7 +43,7 @@ validate_extended_hostname, ) -from extras.plugins import get_plugin_config +from extras.plugins.utils import get_plugin_config class NameServer(NetBoxModel): diff --git a/netbox_dns/template_content.py b/netbox_dns/template_content.py index 67764d63..1ed13662 100644 --- a/netbox_dns/template_content.py +++ b/netbox_dns/template_content.py @@ -1,6 +1,7 @@ from django.db.models.functions import Length -from extras.plugins import PluginTemplateExtension, get_plugin_config +from extras.plugins.utils import get_plugin_config +from extras.plugins import PluginTemplateExtension from netbox_dns.models import Record, RecordTypeChoices, Zone from netbox_dns.tables import RelatedRecordTable, RelatedZoneTable diff --git a/netbox_dns/utilities.py b/netbox_dns/utilities.py index d1637b58..fd35223e 100644 --- a/netbox_dns/utilities.py +++ b/netbox_dns/utilities.py @@ -4,7 +4,7 @@ from dns.exception import DNSException from netaddr import IPNetwork, AddrFormatError -from extras.plugins import get_plugin_config +from extras.plugins.utils import get_plugin_config class NameFormatError(Exception): diff --git a/netbox_dns/validators.py b/netbox_dns/validators.py index d889ac30..017323ad 100644 --- a/netbox_dns/validators.py +++ b/netbox_dns/validators.py @@ -2,7 +2,7 @@ from django.core.exceptions import ValidationError -from extras.plugins import get_plugin_config +from extras.plugins.utils import get_plugin_config LABEL = r"[a-z0-9][a-z0-9-]*(?