diff options
| author | Νικόλαος-Διγενής Καραγιάννης <digenishjkl@gmail.com> | 2025-12-02 12:49:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-02 11:49:20 +0100 |
| commit | cb1d2854ed2b13799f2b0cc6e04019df181bacd4 (patch) | |
| tree | df9c839d3daee2a9065848b00c0dcc1602dd40a6 | |
| parent | 34186e731ca20a2344b1f88fd543a854d6b13a00 (diff) | |
Refs #35444 -- Fixed typo in PostgreSQL StringAgg deprecation warning.
| -rw-r--r-- | django/contrib/postgres/aggregates/general.py | 2 | ||||
| -rw-r--r-- | 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 ad3ff684cb..76dc7e2633 100644 --- a/django/contrib/postgres/aggregates/general.py +++ b/django/contrib/postgres/aggregates/general.py @@ -74,7 +74,7 @@ class StringAgg(_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 e3a5521f74..4355eb2f98 100644 --- a/tests/postgres_tests/test_aggregates.py +++ b/tests/postgres_tests/test_aggregates.py @@ -641,7 +641,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: |
