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 /tests/postgres_tests/fields.py | |
| parent | f4c2b8e04a297f627a8e722d78eda6cbf5cc8a6e (diff) | |
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 'tests/postgres_tests/fields.py')
| -rw-r--r-- | tests/postgres_tests/fields.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/postgres_tests/fields.py b/tests/postgres_tests/fields.py index 0926175e1b..d50c6d6a91 100644 --- a/tests/postgres_tests/fields.py +++ b/tests/postgres_tests/fields.py @@ -9,6 +9,7 @@ try: ArrayField, BigIntegerRangeField, DateRangeField, DateTimeRangeField, FloatRangeField, HStoreField, IntegerRangeField, JSONField, ) + from django.contrib.postgres.search import SearchVectorField except ImportError: class DummyArrayField(models.Field): def __init__(self, base_field, size=None, **kwargs): @@ -30,3 +31,4 @@ except ImportError: HStoreField = models.Field IntegerRangeField = models.Field JSONField = models.Field + SearchVectorField = models.Field |
