diff options
Diffstat (limited to 'django/contrib/postgres/lookups.py')
-rw-r--r-- | django/contrib/postgres/lookups.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/django/contrib/postgres/lookups.py b/django/contrib/postgres/lookups.py index 28d8590e1d..f7c6fc4b0c 100644 --- a/django/contrib/postgres/lookups.py +++ b/django/contrib/postgres/lookups.py @@ -58,3 +58,8 @@ class SearchLookup(SearchVectorExact): class TrigramSimilar(PostgresOperatorLookup): lookup_name = 'trigram_similar' postgres_operator = '%%' + + +class TrigramWordSimilar(PostgresOperatorLookup): + lookup_name = 'trigram_word_similar' + postgres_operator = '%%>' |