Skip to content

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

@peterbe

Description

@peterbe

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions