diff options
| author | Hannes Ljungberg <hannes.ljungberg@gmail.com> | 2021-01-24 23:08:14 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-25 09:03:31 +0100 |
| commit | 5d9374b9fb12843ab897355fd319fef898a95d01 (patch) | |
| tree | 8e00ad46734e18937607a4990a7ed3314eb1109b /docs/ref | |
| parent | c708837a693f0554648b0442827a1e9f3ce67d3f (diff) | |
[3.2.x] Refs #26167 -- Corrected OpClass() example in docs.
Backport of 90ddf46ef7b3d775b124d81e1846bec7961c7f1f from master
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/postgres/indexes.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/ref/contrib/postgres/indexes.txt b/docs/ref/contrib/postgres/indexes.txt index 4a9b2ad22e..9b0a58eb4a 100644 --- a/docs/ref/contrib/postgres/indexes.txt +++ b/docs/ref/contrib/postgres/indexes.txt @@ -192,7 +192,10 @@ available from the ``django.contrib.postgres.indexes`` module. For example:: - Index(OpClass(Lower('username'), name='varchar_pattern_ops')) + Index( + OpClass(Lower('username'), name='varchar_pattern_ops'), + name='lower_username_idx', + ) creates an index on ``Lower('username')`` using ``varchar_pattern_ops``. |
