Skip to content

Sort by relationship #313

Answered by aminalaee
zolkos-ap asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,

The first approach is not clear to me, how do you want to sort by Category.project? It should be with some attribute, right?

The second approach is not possible in SQLAlchemy, so you can't do:

column_sortable_list = [Category.project.name]

It should be supported with column_sortable_list = ["project.name"] but that's not available yet. Feel free to add this feature otherwise I'll get to it later.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zolkos-ap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants