summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/models.py
diff options
context:
space:
mode:
authorGuilherme Martins Crocetti <gmcrocetti@gmail.com>2021-06-17 18:13:49 -0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-11-04 19:08:57 +0100
commitfc565cb539e4c1e5fba70d9ebb19bac0ca251d37 (patch)
tree92bcd7957c5c5090748859253aa4eb7b9944cdf8 /tests/postgres_tests/models.py
parent52f6927d7fb7a4dca40afce0391d018b4c34dd6d (diff)
Fixed #27147 -- Allowed specifying bounds of tuple inputs for non-discrete range fields.
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 adb2e89201..444b039840 100644
--- a/tests/postgres_tests/models.py
+++ b/tests/postgres_tests/models.py
@@ -135,6 +135,9 @@ class RangesModel(PostgreSQLModel):
decimals = DecimalRangeField(blank=True, null=True)
timestamps = DateTimeRangeField(blank=True, null=True)
timestamps_inner = DateTimeRangeField(blank=True, null=True)
+ timestamps_closed_bounds = DateTimeRangeField(
+ blank=True, null=True, default_bounds='[]',
+ )
dates = DateRangeField(blank=True, null=True)
dates_inner = DateRangeField(blank=True, null=True)