mirror of
https://github.com/django/django.git
synced 2025-04-15 04:44:37 +00:00
[3.2.x] Refs #26167 -- Corrected OpClass() example in docs.
Backport of 90ddf46ef7b3d775b124d81e1846bec7961c7f1f from master
This commit is contained in:
parent
c708837a69
commit
5d9374b9fb
@ -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``.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user