diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-19 13:03:25 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-23 08:24:00 +0200 |
| commit | 343afa788080fb874bcd10eab1a1a2fede98c526 (patch) | |
| tree | 5bee9e9378e8a42a71c0116ff38dcae73c0358fc | |
| parent | 485f65b3c010c25b8d75d1b40156db0fa9d5ca57 (diff) | |
Refs #29915 -- Doc'd limitation of using pattern lookups with UUIDField on PostgreSQL.
| -rw-r--r-- | docs/ref/models/fields.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index ac21380db2..dfd9f9b665 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -1304,6 +1304,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 =================== |
