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

OR queries are best done with django.db.models.Q #21

Open
peterbe opened this issue Mar 13, 2018 · 2 comments
Open

OR queries are best done with django.db.models.Q #21

peterbe opened this issue Mar 13, 2018 · 2 comments

Comments

@peterbe
Copy link

peterbe commented Mar 13, 2018

Referring to this: https://github.com/agiliq/django-orm-cookbook/blob/master/docs/or_query.rst
It's great but it's failing to mention django.db.models.Q. With that you can have just 1 queryset object with a OR query "within".

@yashrastogi16
Copy link
Collaborator

Thanks @peterbe for the review, We have discussed it, later in the book.
https://github.com/agiliq/django-orm-cookbook/blob/master/docs/query_relatedtool.rst

@peterbe
Copy link
Author

peterbe commented Mar 13, 2018

Cool. Perhaps a link to that.

I'm just fly-by noticing things.

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