django/django — pull request #2153 by akaariai (2014-01-08 17:36:28+00:00)
Title: Fixed #21478 -- join promotion for negated AND conditions

Made sure Django treats case NOT (a AND b) similarly to case
(NOT a OR NOT b).