I want to run this SqlAlchemy query but the "or_" operator is not "short circuiting". For example, I want the result to be filtered by Car_Make="Toyota" or records which are not None. But the query result throws out all Toyotas and all not None records. I want it to filter either on Toyota and if no toyota then everything which is not None.
Searched_Cars = Cars.query.filter(or_(Cars.Car_Make=="Toyota", Cars.Car_Make !=None)).order_by(Cars.Date_Created.desc())
Any hints?