Skip to content

Commit 81901ab

Browse files
committed
Bump psycopg to 3.1.8+
The earliest supported Django version 4.2 recommends using psycopg>=3.1.8 https://docs.djangoproject.com/en/4.2/ref/databases/#postgresql-notes
1 parent 1660c22 commit 81901ab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

requirements/requirements-optionals.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ django-filter
55
django-guardian>=2.4.0,<2.5
66
inflection==0.5.1
77
markdown>=3.3.7
8-
psycopg2-binary>=2.9.5,<2.10
8+
psycopg[binary]>=3.1.8
99
pygments~=2.17.0
1010
pyyaml>=5.3.1,<5.4

rest_framework/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def unicode_http_header(value):
1616
return value
1717

1818

19-
# django.contrib.postgres requires psycopg2
19+
# django.contrib.postgres requires psycopg
2020
try:
2121
from django.contrib.postgres import fields as postgres_fields
2222
except ImportError:

tests/test_serializer_nested.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class Meta:
315315
required_db_features = {'supports_json_field'}
316316

317317

318-
@pytest.mark.skipif(not postgres_fields, reason='psycopg2 is not installed')
318+
@pytest.mark.skipif(not postgres_fields, reason='psycopg is not installed')
319319
class TestNestedNonRelationalFieldWrite:
320320
"""
321321
Test that raise_errors_on_nested_writes does not raise `AssertionError` when the

0 commit comments

Comments
 (0)