summaryrefslogtreecommitdiff
path: root/tests/annotations/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/annotations/models.py')
-rw-r--r--tests/annotations/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/annotations/models.py b/tests/annotations/models.py
index fbb9ca6988..914770d2fe 100644
--- a/tests/annotations/models.py
+++ b/tests/annotations/models.py
@@ -58,3 +58,11 @@ class Company(models.Model):
class Ticket(models.Model):
active_at = models.DateTimeField()
duration = models.DurationField()
+
+
+class JsonModel(models.Model):
+ data = models.JSONField(default=dict, blank=True)
+ id = models.IntegerField(primary_key=True)
+
+ class Meta:
+ required_db_features = {"supports_json_field"}