summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/models.py
diff options
context:
space:
mode:
authorvinay karanam <vinayinvicible@users.noreply.github.com>2018-07-27 15:35:54 +0000
committerTim Graham <timograham@gmail.com>2018-07-27 11:35:54 -0400
commit3af695eda24b874486ee8be7e0d729761b3bdc71 (patch)
tree7549619d744e65fe6fa7cadcd1e3f9be6574abf5 /tests/postgres_tests/models.py
parent69eb70456bfd42becdbdf1ca6043ae2e3263beb5 (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.py3
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):