diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-04-13 03:22:38 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-04-13 03:22:38 +0000 |
| commit | ed23f00a0007116a695adadc53d642ab90823823 (patch) | |
| tree | e696dd199aeecddf5a585a66e80b92fff4c04d15 /tests | |
| parent | cfb706385b6225e9bcc028b1f8eb5aec462fc161 (diff) | |
Fixed #6899 -- Fixed a problem with boolean evaluation of empty querysets.
Based on patches from cide@ctmod.net and brodie.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7417 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 9b86d60fde..39f13d616d 100644 --- a/tests/regressiontests/queries/models.py +++ b/tests/regressiontests/queries/models.py @@ -584,6 +584,12 @@ Test that parallel iterators work. >>> i1.next() <Tag: t3> +>>> qs = X.objects.all() +>>> bool(qs) +False +>>> bool(qs) +False + We can do slicing beyond what is currently in the result cache, too. # FIXME!! This next test causes really weird PostgreSQL behaviour, but it's |
