Skip to content
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

Support for "NOT" operator #49

Open
pandichef opened this issue Jul 10, 2019 · 1 comment
Open

Support for "NOT" operator #49

pandichef opened this issue Jul 10, 2019 · 1 comment

Comments

@pandichef
Copy link

pandichef commented Jul 10, 2019

Awesome project!

Is there a way to put a "not" in front of a long complex query?

If not, I'd recommend a simple "exclude" parameters in the djangoql() manager method e.g., MyModel.objects.djangoql('mycolumn>True', exclude=True).

@stebunovd
Copy link
Member

Is there a way to put a "not" in front of a long complex query?

no, it's not supported at the moment. However, any query can be rewritten in a way that doesn't require "not".

@stebunovd stebunovd changed the title annotations Support for "NOT" operator Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants