summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2019-09-19 13:03:25 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-09-23 08:47:01 +0200
commitae2dee6ecf5090768c31be6695cc8a3a4201d177 (patch)
treec52494819c3974a2562a075c4e081cddbdc66cc2 /docs/ref
parent268e7c7747ecb9ef9b33b66fe6acd526359835b1 (diff)
[2.2.x] Refs #29915 -- Doc'd limitation of using pattern lookups with UUIDField on PostgreSQL.
Backport of 343afa788080fb874bcd10eab1a1a2fede98c526 from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/fields.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 5ce3abae72..d870ccff71 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -1150,6 +1150,13 @@ it is recommended to use :attr:`~Field.default`::
Note that a callable (with the parentheses omitted) is passed to ``default``,
not an instance of ``UUID``.
+.. admonition:: Lookups on PostgreSQL
+
+ Using :lookup:`iexact`, :lookup:`contains`, :lookup:`icontains`,
+ :lookup:`startswith`, :lookup:`istartswith`, :lookup:`endswith`, or
+ :lookup:`iendswith` lookups on PostgreSQL don't work for values without
+ hyphens, because PostgreSQL stores them in a hyphenated uuid datatype type.
+
Relationship fields
===================