From d13490c18a075799aec1951ee7e260876b5d1ba6 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 5 Apr 2019 12:06:04 +0200 Subject: [PATCH] [1.11.x] Refs #30331 -- Doc'd that psycopg2 < 2.8 is required. Backport of 0a8617a5b1cac7063f30e4d8ff4ea4c30748f7b8 from stable/2.1.x. --- docs/ref/databases.txt | 4 ++-- tests/requirements/postgres.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 67307a9bc8..02eb86d474 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -92,8 +92,8 @@ below for information on how to set up your database correctly. PostgreSQL notes ================ -Django supports PostgreSQL 9.3 and higher. `psycopg2`_ 2.5.4 or higher is -required, though the latest release is recommended. +Django supports PostgreSQL 9.3 and higher. `psycopg2`_ 2.5.4 through 2.7.7 is +required, though the 2.7.7 is recommended. .. _psycopg2: http://initd.org/psycopg/ diff --git a/tests/requirements/postgres.txt b/tests/requirements/postgres.txt index 820d85bb44..86cf59f339 100644 --- a/tests/requirements/postgres.txt +++ b/tests/requirements/postgres.txt @@ -1 +1 @@ -psycopg2-binary>=2.5.4 +psycopg2-binary>=2.5.4,<2.8