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

Filter 'and' logic is broken #43

Open
zatarus opened this issue Jan 5, 2017 · 0 comments
Open

Filter 'and' logic is broken #43

zatarus opened this issue Jan 5, 2017 · 0 comments

Comments

@zatarus
Copy link
Contributor

zatarus commented Jan 5, 2017

I was expecting products with weight between 3 and 4, however this gives OR query instead:
Product.objects.filter(eav__weight__gt=3, eav__weight__lt=4)
.. so I received weight with 2 because it was less than 4.

Django's filter convention is to use that as a AND query, I think that should change to that.

lampslave pushed a commit to hovel/django-eav that referenced this issue Apr 11, 2018
paxaxel223 added a commit to paxaxel223/django-eav2-project that referenced this issue Apr 25, 2023
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