Django’s filter() method joins parameters using an AND statement. Is there an alternative that uses OR?
I’m trying to write a Django query that returns objects that match *either* of two parameters.

If I do this:

    MyModel.objects.filter(parameter1=True, parameter2=True)

Then I only get objects that match *both* parameters.

What query can I use to select objects that match *either* parameter?
Django’s filter() method joins parameters using an AND statement. Is there an alternative that uses OR?
===

I’m trying to write a Django query that returns objects that match *either* of two parameters.

If I do this:

    MyModel.objects.filter(parameter1=True, parameter2=True)

Then I only get objects that match *both* parameters.

What query can I use to select objects that match *either* parameter?