From 74070e40f7b265988303fe28d5cc8048926dd018 Mon Sep 17 00:00:00 2001 From: Peter Eckel Date: Wed, 16 Aug 2023 11:25:16 +0200 Subject: [PATCH] Fixed import statements for NetBox 3.5.8 --- netbox_dns/models.py | 2 +- netbox_dns/template_content.py | 3 ++- netbox_dns/utilities.py | 2 +- netbox_dns/validators.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) 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-]*(?