-
Hello, I want to ask if there is possiblity to order by related models. I have filter like class MainModelFilter(Filter):
order_by: Optional[list[str]]
related_model: Optional[LocaleFilter] = FilterDepends(with_prefix("related_model", RelatedModelFilter)) But when i do request using docs with query parameter related_model__order_by=id, the ordering is not working. I am using SQLAlchemy as ORM. Is there a possibility to order by attribute of related model? |
Beta Was this translation helpful? Give feedback.
Answered by
arthurio
May 24, 2023
Replies: 1 comment 1 reply
-
Hi @xPetricko I have explored this here: #233. I'm going to merge the 3 PRs I have open over the summer. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xPetricko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @xPetricko I have explored this here: #233. I'm going to merge the 3 PRs I have open over the summer.