mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-11-05 02:17:26 +03:00
Bump psycopg to 3.1.8+ (#9815)
The earliest supported Django version 4.2 recommends using psycopg>=3.1.8 https://docs.djangoproject.com/en/4.2/ref/databases/#postgresql-notes
This commit is contained in:
parent
1660c22f3a
commit
29e6241feb
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -315,7 +315,7 @@ if postgres_fields:
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user