[2.2.x] Refs #29915 -- Doc'd limitation of using pattern lookups with UUIDField on PostgreSQL.

Backport of 343afa7880 from master
This commit is contained in:
Mariusz Felisiak 2019-09-19 13:03:25 +02:00
parent 268e7c7747
commit ae2dee6ecf
1 changed files with 7 additions and 0 deletions

View File

@ -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
===================