Skip to content

Conversation

@pheus
Copy link
Contributor

@pheus pheus commented Oct 24, 2025

Fixes: #20655

Mark can_view, can_add, can_change, and can_delete columns in the Permissions list as orderable=False. Sorting by these computed flags persisted an invalid sort key which triggers a FieldError when loading /users/permissions/.

Mark `can_view`, `can_add`, `can_change`, and `can_delete` columns in
the Permissions list as `orderable=False`. Sorting by these computed
flags persisted an invalid sort key which triggers a `FieldError` when
loading `/users/permissions/`.

Fixes netbox-community#20655
@jnovinger jnovinger requested review from a team and jeremystretch and removed request for a team October 24, 2025 14:46
Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pheus!

@jeremystretch jeremystretch merged commit 77307b3 into netbox-community:main Oct 27, 2025
7 checks passed
@pheus pheus deleted the 20655-permission-flags-non-orderable branch October 27, 2025 14:19
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.

Server Error after selecting sort by one of the columns in Permissions

2 participants