diff options
| author | Loic Bistuer <loic.bistuer@gmail.com> | 2015-01-30 14:26:13 +0700 |
|---|---|---|
| committer | Loic Bistuer <loic.bistuer@gmail.com> | 2015-01-30 22:02:58 +0700 |
| commit | 4c3bfe9053766d378999d06ec34ee5fd4e39f511 (patch) | |
| tree | 7fd907b4c1dc0ac93d01a4b2de960e7894b3af8a /tests/aggregation_regress | |
| parent | dbabf43920bfd99f0e720c7c20228c17128a2af8 (diff) | |
Fixed #24211 -- Removed ValuesQuerySet() and ValuesListQuerySet().
Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews.
Diffstat (limited to 'tests/aggregation_regress')
| -rw-r--r-- | tests/aggregation_regress/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/aggregation_regress/tests.py b/tests/aggregation_regress/tests.py index 8d2a006137..e7a457fb58 100644 --- a/tests/aggregation_regress/tests.py +++ b/tests/aggregation_regress/tests.py @@ -511,7 +511,7 @@ class AggregationTests(TestCase): # Regression for #14707 -- If you're using a values query set, some potential conflicts are avoided. # age is a field on Author, so it shouldn't be allowed as an aggregate. - # But age isn't included in the ValuesQuerySet, so it is. + # But age isn't included in values(), so it is. results = Author.objects.values('name').annotate(age=Count('book_contact_set')).order_by('name') self.assertEqual(len(results), 9) self.assertEqual(results[0]['name'], 'Adrian Holovaty') |
