mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
fix(wireless): Correct validation error field reference
Fixes the reference from `interface_a` to `interface_b` in the validation error message for WirelessLink. Ensures the correct field is indicated during validation errors.
This commit is contained in:
parent
0e68901022
commit
8c2ca75cb6
@ -206,7 +206,7 @@ class WirelessLink(WirelessAuthenticationBase, DistanceMixin, PrimaryModel):
|
||||
})
|
||||
if self.interface_b.type not in WIRELESS_IFACE_TYPES:
|
||||
raise ValidationError({
|
||||
'interface_a': _(
|
||||
'interface_b': _(
|
||||
"{type} is not a wireless interface."
|
||||
).format(type=self.interface_b.get_type_display())
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user