New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<relationname>__<fieldname> syntax for order_by in queries #327

Closed
rikrd opened this Issue Jun 25, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@rikrd

rikrd commented Jun 25, 2014

In the case of the filters of a query we can impose conditions on relationships by doing this:

__

https://flask-restless.readthedocs.org/en/latest/searchformat.html#queryformat

I was wondering if something similar could be done for the case of order_by. If for instance we would want to sort the results by computers__manufacturer

@jfinkels jfinkels changed the title from [enhancement] <relationname>__<fieldname> syntax for order_by in queries to <relationname>__<fieldname> syntax for order_by in queries Jul 15, 2014

@jfinkels

This comment has been minimized.

Owner

jfinkels commented Jul 15, 2014

I suppose this is reasonable.

@rcomblen

This comment has been minimized.

rcomblen commented Jan 29, 2015

+1, we miss that feature.

rcomblen pushed a commit to rcomblen/flask-restless that referenced this issue Jan 29, 2015

Richard Comblen
Order by relation
 - Solving issue jfinkels#327

rcomblen pushed a commit to rcomblen/flask-restless that referenced this issue Jan 29, 2015

Richard Comblen
Order by relation
 - Solving issue jfinkels#327
@jfinkels

This comment has been minimized.

Owner

jfinkels commented Jan 31, 2015

Fixed by #327.

@jfinkels jfinkels closed this Jan 31, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment