summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/base.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2025-01-28 08:02:13 +0100
committerGitHub <noreply@github.com>2025-01-28 08:02:13 +0100
commitd9af197801376fae178761cac12d57178a738cf4 (patch)
tree90f7ced27f7d847da4e29337e131696492047a4d /django/db/backends/postgresql/base.py
parent8eca4077f60fa0705ecfd9437c9ceaeef7a3808b (diff)
Refs #36005 -- Bumped minimum supported versions of 3rd-party packages.
This bumps minimum supported versions of 3rd-party packages to the first releases to support Python 3.12.
Diffstat (limited to 'django/db/backends/postgresql/base.py')
-rw-r--r--django/db/backends/postgresql/base.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py
index c864cab57a..a0b5e4154e 100644
--- a/django/db/backends/postgresql/base.py
+++ b/django/db/backends/postgresql/base.py
@@ -1,7 +1,7 @@
"""
PostgreSQL database backend for Django.
-Requires psycopg2 >= 2.8.4 or psycopg >= 3.1.8
+Requires psycopg2 >= 2.9.9 or psycopg >= 3.1.12
"""
import asyncio
@@ -34,13 +34,13 @@ def psycopg_version():
return get_version_tuple(version)
-if psycopg_version() < (2, 8, 4):
+if psycopg_version() < (2, 9, 9):
raise ImproperlyConfigured(
- f"psycopg2 version 2.8.4 or newer is required; you have {Database.__version__}"
+ f"psycopg2 version 2.9.9 or newer is required; you have {Database.__version__}"
)
-if (3,) <= psycopg_version() < (3, 1, 8):
+if (3,) <= psycopg_version() < (3, 1, 12):
raise ImproperlyConfigured(
- f"psycopg version 3.1.8 or newer is required; you have {Database.__version__}"
+ f"psycopg version 3.1.12 or newer is required; you have {Database.__version__}"
)