summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/operations.py
diff options
context:
space:
mode:
authorThomas Chaumeny <t.chaumeny@gmail.com>2014-09-05 22:53:11 +0200
committerTim Graham <timograham@gmail.com>2014-11-28 18:22:20 -0500
commit17fe0bd808a47f37dd1351adb01a8ad2cc852f24 (patch)
treea25e46a939ec1471c54a2dadf8ed57ec029afe1e /django/contrib/postgres/operations.py
parent47789410dbf351fd17a7854492b7b5b99a66bb1c (diff)
downloaddjango-17fe0bd808a47f37dd1351adb01a8ad2cc852f24.tar.gz
Fixed #23423 -- Added unaccent lookup in django.contrib.postgres
Diffstat (limited to 'django/contrib/postgres/operations.py')
-rw-r--r--django/contrib/postgres/operations.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/django/contrib/postgres/operations.py b/django/contrib/postgres/operations.py
index e39d63ffa0..5b3bd2a3cc 100644
--- a/django/contrib/postgres/operations.py
+++ b/django/contrib/postgres/operations.py
@@ -32,3 +32,9 @@ class HStoreExtension(CreateExtension):
# extension is installed, a subsequent data migration would use the
# same connection
register_hstore_handler(schema_editor.connection)
+
+
+class UnaccentExtension(CreateExtension):
+
+ def __init__(self):
+ self.name = 'unaccent'