Sorting on number of reversed FK #563
Unanswered
Dave-Lopper
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Any update on this? I am sorry to follow-up, I have been digging the docs, trying what I would have done under SqlAlchemy, no success so far :/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same thing here, I did not find a solution. @Dave-Lopper , did you find a solution ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I must be missing something basic, have been reading the docs for a long while, but I cannot find an answer to my question, it seems to be a basic use-case, which makes me think I most likely missed something:
I would like to sort a model (order_by) by the number of child relation, example:
I am having this kind of setup, and I would like to sort my users (before pagination) on their number of tasks,
I have tried several things but haven't got it working so far, what am I missing please?
Tried:
...
I also tried with a @property_field on my User class
But I didn't manage to sort on that property_field either
Please help :)
Beta Was this translation helpful? Give feedback.
All reactions