Skip to content

query by OR filter #1732

@LeoWelter

Description

@LeoWelter

I've build a page with django-filter, works beautiful with multiple checkboxes for failed/passed tests.
If I select multiple checkboxes, django-filter does a combined lookup as expected, i.e. the product passes QC, but fails on customer payment, and another bunch of checks

What is the best approach to build an OR version, so the filter will return not only those records that match all parameters, but those records that match any of the given parameters.
my approach would be to add a checkbox to the form for and AND or an OR query and then write some code: but where would be the best place to put that code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions