From 4c2f8b66cb44e71af079428200b954f1781ad7ec Mon Sep 17 00:00:00 2001 From: Arthur Date: Tue, 11 Jul 2023 19:36:09 +0700 Subject: [PATCH] 13132 add gettext_lazy to models --- netbox/ipam/models/ip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/ipam/models/ip.py b/netbox/ipam/models/ip.py index 022ede704..edcc765c4 100644 --- a/netbox/ipam/models/ip.py +++ b/netbox/ipam/models/ip.py @@ -309,8 +309,8 @@ class Prefix(GetAvailablePrefixesMixin, PrimaryModel): duplicate_prefixes = self.get_duplicates() if duplicate_prefixes: raise ValidationError({ - 'prefix': _("Duplicate prefix found in {}: {}".format( - "VRF {}").format(self.vrf) if self.vrf else _("global table"), + 'prefix': _("Duplicate prefix found in {}: {}").format( + _("VRF {}").format(self.vrf) if self.vrf else _("global table"), duplicate_prefixes.first(), ) })