diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-16 20:40:00 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-16 20:40:00 +0000 |
| commit | c127f0117d75220e346625cd8a009fb6a317ece1 (patch) | |
| tree | fbf763d891fa7e216f5e3afede893af3797914cb /tests | |
| parent | 4dece4fba1d8357cf9e4887486d6768e4dc49ca6 (diff) | |
Fixed #8283 -- Fixed an edge case when adding things to the "where" tree and
combining different connector types.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/queries/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py index 894554d30e..60a3cfe2ca 100644 --- a/tests/regressiontests/queries/models.py +++ b/tests/regressiontests/queries/models.py @@ -891,6 +891,12 @@ True >>> Celebrity.objects.count() == num_celebs True +Bug #8283 -- Checking that applying filters after a disjunction works correctly. +>>> (ExtraInfo.objects.filter(note=n1)|ExtraInfo.objects.filter(info='e2')).filter(note=n1) +[<ExtraInfo: e1>] +>>> (ExtraInfo.objects.filter(info='e2')|ExtraInfo.objects.filter(note=n1)).filter(note=n1) +[<ExtraInfo: e1>] + """} # In Python 2.3, exceptions raised in __len__ are swallowed (Python issue |
