[3.2.x] Refs #26167 -- Corrected OpClass() example in docs.

Backport of 90ddf46ef7 from master
This commit is contained in:
Hannes Ljungberg 2021-01-24 23:08:14 +01:00 committed by Mariusz Felisiak
parent c708837a69
commit 5d9374b9fb
1 changed files with 4 additions and 1 deletions

View File

@ -192,7 +192,10 @@ available from the ``django.contrib.postgres.indexes`` module.
For example:: 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``. creates an index on ``Lower('username')`` using ``varchar_pattern_ops``.