Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements/requirements-optionals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ django-filter
django-guardian>=2.4.0,<2.5
inflection==0.5.1
markdown>=3.3.7
psycopg2-binary>=2.9.5,<2.10
psycopg[binary]>=3.1.8
pygments~=2.17.0
pyyaml>=5.3.1,<5.4
2 changes: 1 addition & 1 deletion rest_framework/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def unicode_http_header(value):
return value


# django.contrib.postgres requires psycopg2
# django.contrib.postgres requires psycopg
try:
from django.contrib.postgres import fields as postgres_fields
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_serializer_nested.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class Meta:
required_db_features = {'supports_json_field'}


@pytest.mark.skipif(not postgres_fields, reason='psycopg2 is not installed')
@pytest.mark.skipif(not postgres_fields, reason='psycopg is not installed')
class TestNestedNonRelationalFieldWrite:
"""
Test that raise_errors_on_nested_writes does not raise `AssertionError` when the
Expand Down