diff options
author | Aric Coady <aric.coady@gmail.com> | 2015-09-01 13:23:06 -0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-09-17 19:22:53 -0400 |
commit | f33b3ebd5302fe5821dd796156b0be66c5aebec9 (patch) | |
tree | b43f65ead637b7140015d75d4d78d990ac1aaad8 /tests/custom_managers | |
parent | abd33d80dbd8af14c1ff3b7f89625ebe9f780b89 (diff) | |
download | django-f33b3ebd5302fe5821dd796156b0be66c5aebec9.tar.gz |
Refs #20625 -- Forwardported tests and release notes for queryset chaining fix.
The issue was fixed on master due to the removal of ValuesQuerySet.
Partial forwardport of 7d471fe6626de2b36b97ac04086d8ea307be8288 from stable/1.8.x
Diffstat (limited to 'tests/custom_managers')
-rw-r--r-- | tests/custom_managers/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/custom_managers/tests.py b/tests/custom_managers/tests.py index b8acfc906d..28198b4422 100644 --- a/tests/custom_managers/tests.py +++ b/tests/custom_managers/tests.py @@ -76,6 +76,10 @@ class CustomManagerTests(TestCase): self.assertEqual(list(queryset), [six.text_type("Bugs")]) self.assertEqual(queryset._filter_CustomQuerySet, True) + self.assertIsInstance(queryset.values(), CustomQuerySet) + self.assertIsInstance(queryset.values().values(), CustomQuerySet) + self.assertIsInstance(queryset.values_list().values(), CustomQuerySet) + def test_init_args(self): """ The custom manager __init__() argument has been set. |