summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxncbf <xncbf12@gmail.com>2020-05-17 16:54:26 +0900
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-18 12:19:12 +0200
commit4029bcd6b20f75a78f9a5829d7826c79aeb20732 (patch)
tree4225675414a83ef9507d5e9edffa8deaed9099ba
parent3b1cb78063466e996cbb042e44aadfac30df73fa (diff)
downloaddjango-4029bcd6b20f75a78f9a5829d7826c79aeb20732.tar.gz
Fixed #31577 -- Clarified docs about bounds of RangeFields.
-rw-r--r--AUTHORS1
-rw-r--r--docs/ref/contrib/postgres/fields.txt11
2 files changed, 8 insertions, 4 deletions
diff --git a/AUTHORS b/AUTHORS
index 9165388f58..05be5d870c 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -509,6 +509,7 @@ answer newbie questions, and generally made Django that much better:
Kevin McConnell <kevin.mcconnell@gmail.com>
Kieran Holland <http://www.kieranholland.com>
kilian <kilian.cavalotti@lip6.fr>
+ Kim Joon Hwan 김준환 <xncbf12@gmail.com>
Klaas van Schelven <klaas@vanschelven.com>
knox <christobzr@gmail.com>
konrad@gwu.edu
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt
index b5df103206..b81a49d4ea 100644
--- a/docs/ref/contrib/postgres/fields.txt
+++ b/docs/ref/contrib/postgres/fields.txt
@@ -538,7 +538,10 @@ suitable for.
All of the range fields translate to :ref:`psycopg2 Range objects
<psycopg2:adapt-range>` in Python, but also accept tuples as input if no bounds
information is necessary. The default is lower bound included, upper bound
-excluded; that is, ``[)``.
+excluded, that is ``[)`` (see the PostgreSQL documentation for details about
+`different bounds`_).
+
+.. _different bounds: https://www.postgresql.org/docs/current/rangetypes.html#RANGETYPES-IO
``IntegerRangeField``
---------------------
@@ -552,7 +555,7 @@ excluded; that is, ``[)``.
Regardless of the bounds specified when saving the data, PostgreSQL always
returns a range in a canonical form that includes the lower bound and
- excludes the upper bound; that is ``[)``.
+ excludes the upper bound, that is ``[)``.
``BigIntegerRangeField``
------------------------
@@ -566,7 +569,7 @@ excluded; that is, ``[)``.
Regardless of the bounds specified when saving the data, PostgreSQL always
returns a range in a canonical form that includes the lower bound and
- excludes the upper bound; that is ``[)``.
+ excludes the upper bound, that is ``[)``.
``DecimalRangeField``
---------------------
@@ -599,7 +602,7 @@ excluded; that is, ``[)``.
Regardless of the bounds specified when saving the data, PostgreSQL always
returns a range in a canonical form that includes the lower bound and
- excludes the upper bound; that is ``[)``.
+ excludes the upper bound, that is ``[)``.
Querying Range Fields
---------------------