mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Fix tests crash on SQLite without JSON1 extension. (#7409)
This commit is contained in:
parent
76232437d4
commit
4b06e0a5a1
|
@ -311,6 +311,9 @@ if postgres_fields:
|
|||
"""Model declaring a postgres JSONField"""
|
||||
data = postgres_fields.JSONField()
|
||||
|
||||
class Meta:
|
||||
required_db_features = {'supports_json_field'}
|
||||
|
||||
|
||||
@pytest.mark.skipif(not postgres_fields, reason='psycopg2 is not installed')
|
||||
class TestNestedNonRelationalFieldWrite:
|
||||
|
|
Loading…
Reference in New Issue
Block a user