diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-10-08 08:37:35 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-10-08 08:37:35 +0000 |
| commit | 268ef594ace36e82043b2f9b6eaa18531cd24b2f (patch) | |
| tree | 50dc854f05eba24df4c61a14065ff28c55780dd3 /tests | |
| parent | ce770aaecd1f3677c501ab41e5adbed8db44f109 (diff) | |
Applying a limit to a queryset that already had an upper limit of 0 wasn't
working properly.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9201 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/queries/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py index 2f027f8d36..e5d17c0aaf 100644 --- a/tests/regressiontests/queries/models.py +++ b/tests/regressiontests/queries/models.py @@ -862,6 +862,8 @@ used in lookups. Bug #7698 -- People like to slice with '0' as the high-water mark. >>> Item.objects.all()[0:0] [] +>>> Item.objects.all()[0:0][:10] +[] Bug #7411 - saving to db must work even with partially read result set in another cursor. |
