Several list tables expose broken sortable columns #18

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

Originally created by @pheus on 4/2/2026

NetBox Edition

NetBox Community

NetBox Version

v4.5.6

Python Version

3.12

Steps to Reproduce

  1. Use a current stable NetBox release and create at least one object for each affected list view, with a value present in the column being sorted.
  2. Open the affected list views and try to sort by the listed columns in ascending and descending order. Add the column through the table configuration first if it is not shown by default.
    • Virtual circuit terminations: Account, Interface
    • Config revisions: Is Active
    • Virtual device contexts: Device
    • Module types: Attributes
    • Notifications: Icon
    • Webhooks: SSL Validation
    • VLAN translation rules: Name
    • Tunnels: Terminations

Expected Behavior

Any column exposed as sortable should sort cleanly in both directions. Columns backed by computed or template-only values should be marked non-orderable, and table definitions should only reference valid column names and accessors.

Observed Behavior

Several tables currently expose broken sorting metadata. This appears to be a mix of invalid accessors or order_by targets, columns that should not be orderable, and mismatched column names in the table definitions. As a result, sorting the affected columns can raise an exception during queryset ordering or table rendering, or break when the affected column is enabled on the table.

*Originally created by @pheus on 4/2/2026* ### NetBox Edition NetBox Community ### NetBox Version v4.5.6 ### Python Version 3.12 ### Steps to Reproduce 1. Use a current stable NetBox release and create at least one object for each affected list view, with a value present in the column being sorted. 2. Open the affected list views and try to sort by the listed columns in ascending and descending order. Add the column through the table configuration first if it is not shown by default. - Virtual circuit terminations: **Account**, **Interface** - Config revisions: **Is Active** - Virtual device contexts: **Device** - Module types: **Attributes** - Notifications: **Icon** - Webhooks: **SSL Validation** - VLAN translation rules: **Name** - Tunnels: **Terminations** ### Expected Behavior Any column exposed as sortable should sort cleanly in both directions. Columns backed by computed or template-only values should be marked non-orderable, and table definitions should only reference valid column names and accessors. ### Observed Behavior Several tables currently expose broken sorting metadata. This appears to be a mix of invalid accessors or `order_by` targets, columns that should not be orderable, and mismatched column names in the table definitions. As a result, sorting the affected columns can raise an exception during queryset ordering or table rendering, or break when the affected column is enabled on the table.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#18