From 10157394aebf81966c2d9c3b4a2fcccb020fec84 Mon Sep 17 00:00:00 2001 From: Jason Novinger Date: Thu, 12 Mar 2026 10:19:34 -0500 Subject: [PATCH] Fixes #21651: Disable ordering on MACAddress is_primary column is_primary is a cached_property, not a database field, so attempting to order by it raises a FieldError. --- netbox/dcim/tables/devices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox/dcim/tables/devices.py b/netbox/dcim/tables/devices.py index 7fbe61e70..e6985a780 100644 --- a/netbox/dcim/tables/devices.py +++ b/netbox/dcim/tables/devices.py @@ -1205,7 +1205,8 @@ class MACAddressTable(PrimaryModelTable): verbose_name=_('Parent') ) is_primary = columns.BooleanColumn( - verbose_name=_('Primary') + verbose_name=_('Primary'), + orderable=False, ) tags = columns.TagColumn( url_name='dcim:macaddress_list'