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

Negate not been respected #132

Open
instasck opened this issue Nov 30, 2020 · 1 comment
Open

Negate not been respected #132

instasck opened this issue Nov 30, 2020 · 1 comment

Comments

@instasck
Copy link

instasck commented Nov 30, 2020

Describe the bug
I have a "follower" object, with many to many language field have "he" and "ar".
I choose "he" and not "ar":
image

But I did find Arabic (ar) in the results:
image

and checked that this user have "ar":
image

DEBUG LOG:
DEBUG {'children': [['language__code_name__iexact', 'he'], <Q: (NOT (AND: ['language__code_name__iexact', 'ar']))>, ['gender__iexact', 'female']], 'connector': 'AND', 'negated': False}

So why he shows up in results ?

Details (please complete the following information):

  • OS: [e.g. iOS]
  • Python version [e.g 3.7] 3.7.4
  • Django version [e. 2.1]
  • django-advanced-filters version [e.g 1.1]
  • Browser [e.g. chrome, safari] chrome
@instasck
Copy link
Author

instasck commented Dec 2, 2020

image

So once the NEGATE condition is first it will work.
Once I do like this:
image

It will not work.

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

1 participant