Skip to content

Commit

Permalink
Fixed import statements for NetBox 3.5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
peteeckel committed Aug 16, 2023
1 parent 1331da4 commit f0000ba
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion netbox_dns/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class DNSConfig(PluginConfig):
name = "netbox_dns"
verbose_name = "NetBox DNS"
description = "NetBox plugin for DNS data"
min_version = "3.5"
min_version = "3.5.8"
version = __version__
author = "Peter Eckel"
author_email = "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 2 additions & 1 deletion netbox_dns/template_content.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-]*(?<!-)"
UNDERSCORE_LABEL = r"[a-z0-9][a-z0-9-_]*(?<![-_])"
Expand Down

0 comments on commit f0000ba

Please sign in to comment.