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
d051494cef
commit
4c2f8b66cb
@ -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(),
|
||||
)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user