From fb427e467ca2bb9f1363ef22eff2426f614faa91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?sag=E2=80=8Be?= Date: Sun, 27 Apr 2025 08:03:35 +0100 Subject: [PATCH] Fixed aggregation tests crash on databases that don't support JSONFields. --- tests/aggregation/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/aggregation/models.py b/tests/aggregation/models.py index 9f0997b014..6eed9b22fb 100644 --- a/tests/aggregation/models.py +++ b/tests/aggregation/models.py @@ -47,3 +47,6 @@ class Store(models.Model): class Employee(models.Model): work_day_preferences = models.JSONField() + + class Meta: + required_db_features = {"supports_json_field"}