summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHannes Ljungberg <hannes.ljungberg@gmail.com>2021-01-24 23:08:14 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-25 08:41:35 +0100
commit90ddf46ef7b3d775b124d81e1846bec7961c7f1f (patch)
treeaac4e63a2f2e81e3b2235b936945f8853b9e32d9 /docs
parent84ad7f34043c112a932b3ea396ebc98717bfd7e7 (diff)
Refs #26167 -- Corrected OpClass() example in docs.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/postgres/indexes.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/ref/contrib/postgres/indexes.txt b/docs/ref/contrib/postgres/indexes.txt
index 746e26330e..b6a4aba808 100644
--- a/docs/ref/contrib/postgres/indexes.txt
+++ b/docs/ref/contrib/postgres/indexes.txt
@@ -190,7 +190,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``.