diff options
author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2015-05-31 22:45:03 +0100 |
---|---|---|
committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2016-04-22 10:44:37 +0100 |
commit | 2d877da85526bad0dad7fd6b1d56b1f924c0116a (patch) | |
tree | cfb530183be389e928351aa25f3fb5a03f59a1af /django/contrib/postgres/apps.py | |
parent | f4c2b8e04a297f627a8e722d78eda6cbf5cc8a6e (diff) | |
download | django-2d877da85526bad0dad7fd6b1d56b1f924c0116a.tar.gz |
Refs #3254 -- Added full text search to contrib.postgres.
Adds a reasonably feature complete implementation of full text search
using the built in PostgreSQL engine. It uses public APIs from
Expression and Lookup.
With thanks to Tim Graham, Simon Charettes, Josh Smeaton, Mikey Ariel
and many others for their advice and review. Particular thanks also go
to the supporters of the contrib.postgres kickstarter.
Diffstat (limited to 'django/contrib/postgres/apps.py')
-rw-r--r-- | django/contrib/postgres/apps.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/django/contrib/postgres/apps.py b/django/contrib/postgres/apps.py index c172281cce..e7cdfd3866 100644 --- a/django/contrib/postgres/apps.py +++ b/django/contrib/postgres/apps.py @@ -3,7 +3,7 @@ from django.db.backends.signals import connection_created from django.db.models import CharField, TextField from django.utils.translation import ugettext_lazy as _ -from .lookups import Unaccent +from .lookups import SearchLookup, Unaccent from .signals import register_hstore_handler @@ -15,3 +15,5 @@ class PostgresConfig(AppConfig): connection_created.connect(register_hstore_handler) CharField.register_lookup(Unaccent) TextField.register_lookup(Unaccent) + CharField.register_lookup(SearchLookup) + TextField.register_lookup(SearchLookup) |