summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-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``.