+79
−0
Loading
Made sure Django treats case .filter(NOT (a AND b)) the same way as .filter((NOT a OR NOT b)) for join promotion. Heavily modified backpatch of 35cecb1e from master. Conflicts: django/db/models/sql/query.py tests/queries/tests.py