Skip to content

Commit

Permalink
Merge pull request #27 from peteeckel/fix/validate-zone-names-no-view
Browse files Browse the repository at this point in the history
Fix duplicate zone name validation when no view exists
  • Loading branch information
peteeckel committed Jul 4, 2023
2 parents b53722c + 7355e03 commit 20a0a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox_dns/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def check_name_conflict(self):
if self.view is None:
if (
Zone.objects.exclude(pk=self.pk)
.filter(name=self.name, view__isnull=True)
.filter(name=self.name.rstrip("."), view__isnull=True)
.exists()
):
raise ValidationError(
Expand Down

0 comments on commit 20a0a45

Please sign in to comment.