Skip to content

Support negated filters on one-to-one and many-to-one Relationships #26

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

camuthig
Copy link

@camuthig camuthig commented May 1, 2025

This makes it possible to have a one-to-one and many-to-one Relationship with both multiple set to False and execute negated queries on it. This sort of relationship does not need to create a WHERE NOT EXIST subquery, and by setting the m2m variable the ORM will generate the correct query for us.

This does not solve the larger issue for a one-to-many or many-to-many relationship and negated queries.

@camuthig camuthig force-pushed the support-single-forward-negation-filter branch from 2930936 to ef61476 Compare May 1, 2025 21:31
@camuthig camuthig changed the title Support negated filters on one-to-one Relationships Support negated filters on one-to-one and many-to-one Relationships May 1, 2025
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 this pull request may close these issues.

1 participant