From an example you can see a multiple OR query filter:
Article.objects.filter(Q(pk=1) | Q(pk=2) | Q(pk=3))
For example, this results in:
In case we want to programmatically set what db field we want to query:
import operator questions = [('question__contains', 'test'), ('question__gt', 23 )] q_list = [Q(x) for x in questions] Poll.objects.filter(reduce(operator.or_, q_list))