diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-10-12 12:52:58 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-10-14 20:57:03 +0200 |
| commit | 735c88fdd75ca1f798bd39b00be77af4acc6cf15 (patch) | |
| tree | 6b2a8d273bdfd28545e22e14495bc08684aec0f2 /tests/postgres_tests/models.py | |
| parent | 84685e5132718ea700acc7cb9c7168fb4a915cd4 (diff) | |
[3.1.x] Refs #32096 -- Added test for ArrayAgg over JSONField key transforms.
Backport of 1d650ad019c1ab8e73d1e5b2587bb232c8ab35b6 from master
Diffstat (limited to 'tests/postgres_tests/models.py')
| -rw-r--r-- | tests/postgres_tests/models.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/postgres_tests/models.py b/tests/postgres_tests/models.py index 464245fbab..a5bfc72fe7 100644 --- a/tests/postgres_tests/models.py +++ b/tests/postgres_tests/models.py @@ -154,16 +154,17 @@ class ArrayFieldSubclass(ArrayField): super().__init__(models.IntegerField()) -class AggregateTestModel(models.Model): +class AggregateTestModel(PostgreSQLModel): """ To test postgres-specific general aggregation functions """ char_field = models.CharField(max_length=30, blank=True) integer_field = models.IntegerField(null=True) boolean_field = models.BooleanField(null=True) + json_field = models.JSONField(null=True) -class StatTestModel(models.Model): +class StatTestModel(PostgreSQLModel): """ To test postgres-specific aggregation functions for statistics """ |
