-
Notifications
You must be signed in to change notification settings - Fork 5
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
Query Expressions support #4
Comments
Test example:
|
Ok - that's a great suggestion, I haven't got time right now but I'll see what I can do in the next few weeks. In this case though, could you not just go something like this?
|
|
Ah ok, that makes sense. |
From Django documentation https://docs.djangoproject.com/en/1.11/ref/models/querysets/#order-by
Or another example from documentation https://docs.djangoproject.com/en/1.11/ref/models/expressions/#some-examples
But when I try to use code like this:
I get an error:
'OrderBy' object does not support indexing
in this file https://github.com/gregplaysguitar/django-next-prev/blob/master/next_prev.py in line 49
if field[0] == '-':
Could you please add support of Query Expressions and fix it?
The text was updated successfully, but these errors were encountered: