Skip to content

Commit 4b06e0a

Browse files
authored
Fix tests crash on SQLite without JSON1 extension. (#7409)
1 parent 7623243 commit 4b06e0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_serializer_nested.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ class NonRelationalPersonModel(models.Model):
311311
"""Model declaring a postgres JSONField"""
312312
data = postgres_fields.JSONField()
313313

314+
class Meta:
315+
required_db_features = {'supports_json_field'}
316+
314317

315318
@pytest.mark.skipif(not postgres_fields, reason='psycopg2 is not installed')
316319
class TestNestedNonRelationalFieldWrite:

0 commit comments

Comments
 (0)