1
0
Fork 0
mirror of https://github.com/Findus23/RPGnotes.git synced 2024-09-19 15:43:45 +02:00
RPGnotes/search/utils.py

8 lines
172 B
Python
Raw Normal View History

2022-04-11 22:43:06 +02:00
from django.contrib.postgres.indexes import GinIndex
NameSearchIndex = GinIndex(
name='%(class)s_name_gin_idx',
fields=['name'],
opclasses=['gin_trgm_ops'],
)