mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-20 20:32:25 -06:00
* Translations cleanup * Tweak variable names; misc string cleanup * Misc cleanup
This commit is contained in:
@@ -213,14 +213,14 @@ class WirelessLink(WirelessAuthenticationBase, PrimaryModel):
|
||||
if self.interface_a.type not in WIRELESS_IFACE_TYPES:
|
||||
raise ValidationError({
|
||||
'interface_a': _(
|
||||
"{type_display} is not a wireless interface."
|
||||
).format(type_display=self.interface_a.get_type_display())
|
||||
"{type} is not a wireless interface."
|
||||
).format(type=self.interface_a.get_type_display())
|
||||
})
|
||||
if self.interface_b.type not in WIRELESS_IFACE_TYPES:
|
||||
raise ValidationError({
|
||||
'interface_a': _(
|
||||
"{type_display} is not a wireless interface."
|
||||
).format(type_display=self.interface_b.get_type_display())
|
||||
"{type} is not a wireless interface."
|
||||
).format(type=self.interface_b.get_type_display())
|
||||
})
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user