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

QuerySet results incorrect when Q() is empty or full #22

Closed
timgraham opened this issue May 10, 2024 · 1 comment
Closed

QuerySet results incorrect when Q() is empty or full #22

timgraham opened this issue May 10, 2024 · 1 comment
Assignees

Comments

@timgraham
Copy link
Collaborator

For example, Article.objects.filter(Q(pk__in=[]) | Q(headline__icontains="goodbye")) returns no results instead of matching the latter condition (or_lookups.tests.OrLookupsTests.test_empty_in).

timgraham added a commit to WaVEV/django-mongodb that referenced this issue May 24, 2024
fixes mongodb-labs#13, mongodb-labs#22

Co-authored-by: Tim Graham <timograham@gmail.com>
timgraham added a commit to WaVEV/django-mongodb that referenced this issue May 24, 2024
fixes mongodb-labs#13, mongodb-labs#22

Co-authored-by: Tim Graham <timograham@gmail.com>
timgraham added a commit to WaVEV/django-mongodb that referenced this issue May 24, 2024
fixes mongodb-labs#13, mongodb-labs#22

Co-authored-by: Tim Graham <timograham@gmail.com>
@timgraham
Copy link
Collaborator Author

Fixed by #33 (3789b9f).

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

Successfully merging a pull request may close this issue.

2 participants