Skip to content

Commit

Permalink
Fix duplicate zone name validation when no view exists
Browse files Browse the repository at this point in the history
  • Loading branch information
peteeckel committed Jul 4, 2023
1 parent b53722c commit 7355e03
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 7355e03

Please sign in to comment.