Fixed #8439 -- Complex combinations of Q-objects (using both conjunctions and
commit744c4cc1639196c0c22fdaf974b38da0be5626af
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Tue, 2 Sep 2008 02:16:41 +0000 (2 02:16 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Tue, 2 Sep 2008 02:16:41 +0000 (2 02:16 +0000)
treee2f8477ce14a7e82962d4759265f25fb43a826ec
parentb7ab126a4cb4c124127660d40cc50af052f67b5c
Fixed #8439 -- Complex combinations of Q-objects (using both conjunctions and
disjunctions) were producing incorrect SQL when nullable relations were
involved. This fixes that.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
django/db/models/sql/constants.py
django/db/models/sql/query.py
tests/regressiontests/queries/models.py