Fixes #21651: Disable ordering on MACAddress is_primary column #159

Closed
opened 2026-04-05 16:22:29 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jnovinger on 3/12/2026

Fixes: #21651

The is_primary column on MACAddressTable is backed by a @cached_property on the model, not a database field. Clicking the column header to sort triggers FieldError: Cannot resolve keyword 'is_primary' into field. Worse, the sort preference is persisted to user config, so the list view crashes on every subsequent load.

This adds orderable=False to the column definition.

*Originally created by @jnovinger on 3/12/2026* ### Fixes: #21651 The `is_primary` column on `MACAddressTable` is backed by a `@cached_property` on the model, not a database field. Clicking the column header to sort triggers `FieldError: Cannot resolve keyword 'is_primary' into field`. Worse, the sort preference is persisted to user config, so the list view crashes on every subsequent load. This adds `orderable=False` to the column definition.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#159