From 90ddf46ef7b3d775b124d81e1846bec7961c7f1f Mon Sep 17 00:00:00 2001 From: Hannes Ljungberg Date: Sun, 24 Jan 2021 23:08:14 +0100 Subject: [PATCH] Refs #26167 -- Corrected OpClass() example in docs. --- docs/ref/contrib/postgres/indexes.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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``.