From bc39ab2c912a17347e29b6722008f2534d8f6977 Mon Sep 17 00:00:00 2001 From: Arthur Date: Tue, 11 Jul 2023 19:49:27 +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 edcc765c4..69eb3b802 100644 --- a/netbox/ipam/models/ip.py +++ b/netbox/ipam/models/ip.py @@ -825,8 +825,8 @@ class IPAddress(PrimaryModel): any(dip.role not in IPADDRESS_ROLES_NONUNIQUE for dip in duplicate_ips) ): raise ValidationError({ - 'address': _("Duplicate IP address found in {}: {}".format( - "VRF {}").format(self.vrf) if self.vrf else _("global table"), + 'address': _("Duplicate IP address found in {}: {}").format( + _("VRF {}").format(self.vrf) if self.vrf else _("global table"), duplicate_ips.first(), ) })