1
0
mirror of https://github.com/django/django.git synced 2025-10-31 01:25:32 +00:00

Refs #34255 -- Bumped required psycopg version to 3.1.8.

This commit is contained in:
Mariusz Felisiak
2023-01-17 05:21:53 +01:00
parent 0fbdb9784d
commit c8a76059ff
5 changed files with 9 additions and 9 deletions

View File

@@ -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__}"
)