summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorΝικόλαος-Διγενής Καραγιάννης <digenishjkl@gmail.com>2025-12-02 12:49:20 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2025-12-02 11:50:03 +0100
commitc95abc581e469c81790ea5c8c32452b8222e1743 (patch)
treed8e4a3ffb537fc7d4839783ad47d6cba631ae84c
parentec7327453d266d31a00060aeb5b9f19e5adfb0a4 (diff)
[6.0.x] Refs #35444 -- Fixed typo in PostgreSQL StringAgg deprecation warning.
Backport of cb1d2854ed2b13799f2b0cc6e04019df181bacd4 from main
-rw-r--r--django/contrib/postgres/aggregates/general.py2
-rw-r--r--tests/postgres_tests/test_aggregates.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/postgres/aggregates/general.py b/django/contrib/postgres/aggregates/general.py
index b2ecd18ffb..0cf8a02cc8 100644
--- a/django/contrib/postgres/aggregates/general.py
+++ b/django/contrib/postgres/aggregates/general.py
@@ -82,7 +82,7 @@ class StringAgg(_DeprecatedOrdering, _StringAgg):
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 621fa43d91..0eb4b4afa0 100644
--- a/tests/postgres_tests/test_aggregates.py
+++ b/tests/postgres_tests/test_aggregates.py
@@ -683,7 +683,7 @@ class TestGeneralAggregate(PostgreSQLTestCase):
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: