Skip to content

Fixes #21749: Prevent sorting on unsupported Provider, Member, and Action Object columns#21764

Merged
jeremystretch merged 1 commit intomainfrom
21749-circuitgroupassignmenttable-fielderror-when-sorting-by-member
Mar 31, 2026
Merged

Fixes #21749: Prevent sorting on unsupported Provider, Member, and Action Object columns#21764
jeremystretch merged 1 commit intomainfrom
21749-circuitgroupassignmenttable-fielderror-when-sorting-by-member

Conversation

@pheus
Copy link
Copy Markdown
Contributor

@pheus pheus commented Mar 26, 2026

Fixes: #21749

Mark the provider, member, and action_object table columns as non-orderable.

These columns rely on complex accessors that do not map cleanly to database ordering, which can cause table rendering errors when sorting is applied. Marking them as non-orderable fixes the immediate issue while keeping this change focused on the bug itself.

Broader table-ordering test coverage will be handled separately as housekeeping work.

Mark provider, member, and action_object columns as non-orderable since
they use complex accessors that cannot be sorted. Add regression tests
to verify all orderable columns render without exceptions.

Fixes table rendering errors when attempting to sort columns with
multi-level field accessors that don't support database ordering.
@pheus pheus requested review from a team and jnovinger and removed request for a team March 26, 2026 19:06
@jeremystretch jeremystretch requested review from jeremystretch and removed request for jnovinger March 31, 2026 11:57
@jeremystretch jeremystretch merged commit 0923a3d into main Mar 31, 2026
11 checks passed
@jeremystretch jeremystretch deleted the 21749-circuitgroupassignmenttable-fielderror-when-sorting-by-member branch March 31, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CircuitGroupAssignmentTable FieldError when sorting by member column (GenericForeignKey missing orderable=False)

2 participants