1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #32096 -- Added test for ArrayAgg over JSONField key transforms.

This commit is contained in:
Mariusz Felisiak
2020-10-12 12:52:58 +02:00
parent 7bfdd3b951
commit 1d650ad019
3 changed files with 47 additions and 12 deletions

View File

@@ -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
"""