From cb1d2854ed2b13799f2b0cc6e04019df181bacd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=9D=CE=B9=CE=BA=CF=8C=CE=BB=CE=B1=CE=BF=CF=82-=CE=94?= =?UTF-8?q?=CE=B9=CE=B3=CE=B5=CE=BD=CE=AE=CF=82=20=CE=9A=CE=B1=CF=81=CE=B1?= =?UTF-8?q?=CE=B3=CE=B9=CE=AC=CE=BD=CE=BD=CE=B7=CF=82?= Date: Tue, 2 Dec 2025 12:49:20 +0200 Subject: [PATCH] Refs #35444 -- Fixed typo in PostgreSQL StringAgg deprecation warning. --- django/contrib/postgres/aggregates/general.py | 2 +- tests/postgres_tests/test_aggregates.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/postgres/aggregates/general.py b/django/contrib/postgres/aggregates/general.py index ad3ff684cbcd..76dc7e263398 100644 --- a/django/contrib/postgres/aggregates/general.py +++ b/django/contrib/postgres/aggregates/general.py @@ -74,7 +74,7 @@ def __init__(self, expression, delimiter, **extra): warnings.warn( "The PostgreSQL specific StringAgg function is deprecated. Use " - "django.db.models.aggregate.StringAgg instead.", + "django.db.models.aggregates.StringAgg instead.", category=RemovedInDjango70Warning, stacklevel=2, ) diff --git a/tests/postgres_tests/test_aggregates.py b/tests/postgres_tests/test_aggregates.py index e3a5521f74ec..4355eb2f9882 100644 --- a/tests/postgres_tests/test_aggregates.py +++ b/tests/postgres_tests/test_aggregates.py @@ -641,7 +641,7 @@ def test_string_agg_delimiter_deprecation(self): def test_string_agg_deprecation(self): msg = ( "The PostgreSQL specific StringAgg function is deprecated. Use " - "django.db.models.aggregate.StringAgg instead." + "django.db.models.aggregates.StringAgg instead." ) with self.assertWarnsMessage(RemovedInDjango70Warning, msg) as ctx: