你可能想要
import operator from functools import reduce # Python 3search_params = reduce(operator.or_, search_params, Q())
从空条件开始,这将
|在所有项之间按位或()放置。
search_params``Q()

你可能想要
import operator from functools import reduce # Python 3search_params = reduce(operator.or_, search_params, Q())
从空条件开始,这将
|在所有项之间按位或()放置。
search_params``Q()