diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-06-05 17:37:48 +0100 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-05-13 12:38:21 -0400 |
commit | 1962a96a30e02de78a674a2e02979c00cc55655b (patch) | |
tree | 2abaf90658eaf619563b96aa7c8c810e5b83f365 /django/contrib/postgres/operations.py | |
parent | d7334b405fb0e677e79cb064074df68188f0ddb5 (diff) | |
download | django-1962a96a30e02de78a674a2e02979c00cc55655b.tar.gz |
Fixed #24938 -- Added PostgreSQL trigram support.
Diffstat (limited to 'django/contrib/postgres/operations.py')
-rw-r--r-- | django/contrib/postgres/operations.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/django/contrib/postgres/operations.py b/django/contrib/postgres/operations.py index 2a0a8402ed..5992f00725 100644 --- a/django/contrib/postgres/operations.py +++ b/django/contrib/postgres/operations.py @@ -40,3 +40,9 @@ class UnaccentExtension(CreateExtension): def __init__(self): self.name = 'unaccent' + + +class TrigramExtension(CreateExtension): + + def __init__(self): + self.name = 'pg_trgm' |