mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -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)
|
any(dip.role not in IPADDRESS_ROLES_NONUNIQUE for dip in duplicate_ips)
|
||||||
):
|
):
|
||||||
raise ValidationError({
|
raise ValidationError({
|
||||||
'address': _("Duplicate IP address found in {}: {}".format(
|
'address': _("Duplicate IP address found in {}: {}").format(
|
||||||
"VRF {}").format(self.vrf) if self.vrf else _("global table"),
|
_("VRF {}").format(self.vrf) if self.vrf else _("global table"),
|
||||||
duplicate_ips.first(),
|
duplicate_ips.first(),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user