[Answered ]-Trying to reduce Django Q objects with operator.or_ seems to result in reduction with 'AND'

2👍

q_objects[type] = [Q(**q_dict)]

No. You need to handle each element separately.

q_objects[type] = [Q(**{k: v}) for (k, v) in q_dict.iteritems()]

Leave a comment