diff options
| author | vinay karanam <vinayinvicible@users.noreply.github.com> | 2018-07-27 15:35:54 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-07-27 11:35:54 -0400 |
| commit | 3af695eda24b874486ee8be7e0d729761b3bdc71 (patch) | |
| tree | 7549619d744e65fe6fa7cadcd1e3f9be6574abf5 /tests/postgres_tests/models.py | |
| parent | 69eb70456bfd42becdbdf1ca6043ae2e3263beb5 (diff) | |
Fixed #28291, #24726 -- Fixed ArrayField with JSONField and RangeFields.
Diffstat (limited to 'tests/postgres_tests/models.py')
| -rw-r--r-- | tests/postgres_tests/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/postgres_tests/models.py b/tests/postgres_tests/models.py index d5865818e7..cd1646a3e6 100644 --- a/tests/postgres_tests/models.py +++ b/tests/postgres_tests/models.py @@ -67,6 +67,9 @@ class OtherTypesArrayModel(PostgreSQLModel): uuids = ArrayField(models.UUIDField()) decimals = ArrayField(models.DecimalField(max_digits=5, decimal_places=2)) tags = ArrayField(TagField(), blank=True, null=True) + json = ArrayField(JSONField(default=dict), default=list) + int_ranges = ArrayField(IntegerRangeField(), blank=True, null=True) + bigint_ranges = ArrayField(BigIntegerRangeField(), blank=True, null=True) class HStoreModel(PostgreSQLModel): |
