8000 Fixed aggregation tests crash on databases that don't support JSONFie… · feanil/django@fb427e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb427e4

Browse files
authored
Fixed aggregation tests crash on databases that don't support JSONFields.
1 parent 7b394b9 commit fb427e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/aggregation/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ def __str__(self):
4747

4848
class Employee(models.Model):
4949
work_day_preferences = models.JSONField()
50+
51+
class Meta:
52+
required_db_features = {"supports_json_field"}

0 commit comments

Comments
 (0)
0