diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-17 05:21:53 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-17 08:24:08 +0100 |
commit | c8a76059ff6ff37fb51972fe2ba8b9d9464af769 (patch) | |
tree | e0de6f4defceb4f6082d747d6ea5623708aebb36 /django/db/backends/postgresql/base.py | |
parent | 0fbdb9784da915fce5dcc1fe82bac9b4785749e5 (diff) | |
download | django-c8a76059ff6ff37fb51972fe2ba8b9d9464af769.tar.gz |
Refs #34255 -- Bumped required psycopg version to 3.1.8.
Diffstat (limited to 'django/db/backends/postgresql/base.py')
-rw-r--r-- | django/db/backends/postgresql/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index 17a3c7a377..34a98e9e3a 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 +Requires psycopg2 >= 2.8.4 or psycopg >= 3.1.8 """ import asyncio @@ -38,9 +38,9 @@ if psycopg_version() < (2, 8, 4): raise ImproperlyConfigured( f"psycopg2 version 2.8.4 or newer is required; you have {Database.__version__}" ) -if (3,) <= psycopg_version() < (3, 1): +if (3,) <= psycopg_version() < (3, 1, 8): raise ImproperlyConfigured( - f"psycopg version 3.1 or newer is required; you have {Database.__version__}" + f"psycopg version 3.1.8 or newer is required; you have {Database.__version__}" ) |