From 2680f855ffaef0a876bac811d4cd56198ae3f329 Mon Sep 17 00:00:00 2001 From: Martin Hauser Date: Fri, 6 Jun 2025 14:12:13 +0200 Subject: [PATCH] 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. --- netbox/wireless/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/wireless/models.py b/netbox/wireless/models.py index 6cdc6fc5b..9c73ae5b7 100644 --- a/netbox/wireless/models.py +++ b/netbox/wireless/models.py @@ -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()) })