diff options
| author | Simon Charette <charette.s@gmail.com> | 2023-12-16 14:05:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-16 20:05:36 +0100 |
| commit | eea4f92f9aa57d1b25f1c28d11c3b5a6a5841e82 (patch) | |
| tree | d630a8e4e45c6e6da3619b5150fd77d5f357db71 /tests/aggregation | |
| parent | c83c639ba0c67dbb0f627be3df29d1224ea92d2b (diff) | |
Refs #34013 -- Registered instance lookups as documented in tests.
Diffstat (limited to 'tests/aggregation')
| -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)) |
