mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 00:36:11 -06:00
13132 add gettext_lazy to models
This commit is contained in:
parent
4c2f8b66cb
commit
bc39ab2c91
@ -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(),
|
||||
)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user