summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/aggregation_regress/tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/aggregation_regress/tests.py b/tests/aggregation_regress/tests.py
index 48187ee00b..29ffe1f058 100644
--- a/tests/aggregation_regress/tests.py
+++ b/tests/aggregation_regress/tests.py
@@ -701,10 +701,10 @@ class AggregationTests(TestCase):
qs = Book.objects.extra(select={'pub': 'publisher_id'}).values('pub').annotate(Count('id')).order_by('pub')
self.assertSequenceEqual(
qs, [
- {'pub': self.b1.id, 'id__count': 2},
- {'pub': self.b2.id, 'id__count': 1},
- {'pub': self.b3.id, 'id__count': 2},
- {'pub': self.b4.id, 'id__count': 1}
+ {'pub': self.p1.id, 'id__count': 2},
+ {'pub': self.p2.id, 'id__count': 1},
+ {'pub': self.p3.id, 'id__count': 2},
+ {'pub': self.p4.id, 'id__count': 1},
],
)