diff options
Diffstat (limited to 'tests/aggregation/tests.py')
| -rw-r--r-- | tests/aggregation/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/aggregation/tests.py b/tests/aggregation/tests.py index bedc2730a2..62e9c6a27a 100644 --- a/tests/aggregation/tests.py +++ b/tests/aggregation/tests.py @@ -1734,7 +1734,7 @@ class AggregateTestCase(TestCase): super().__init__(expr, 100) sum_field = IntegerField() - sum_field.register_instance_lookup(Mod100, "mod100") + sum_field.register_lookup(Mod100, "mod100") publisher_pages = ( Book.objects.values("publisher") .annotate(sum_pages=Sum("pages", output_field=sum_field)) |
