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.
This commit is contained in:
Marc Tamlyn 2015-05-31 22:45:03 +01:00
parent f4c2b8e04a
commit 2d877da855
16 changed files with 880 additions and 4 deletions

View file

@ -125,9 +125,11 @@ class BaseExpression(object):
# aggregate specific fields
is_summary = False
_output_field = None
def __init__(self, output_field=None):
self._output_field = output_field
if output_field is not None:
self._output_field = output_field
def get_db_converters(self, connection):
return [self.convert_value] + self.output_field.get_db_converters(connection)