mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #31147 -- Added SearchHeadline to django.contrib.postgres.
This commit is contained in:
committed by
Mariusz Felisiak
parent
aee0bebc2f
commit
65ab4f9f03
@@ -1,9 +1,13 @@
|
||||
from django.contrib.postgres.search import TrigramDistance, TrigramSimilarity
|
||||
from django.test import modify_settings
|
||||
|
||||
from . import PostgreSQLTestCase
|
||||
from .models import CharFieldModel, TextFieldModel
|
||||
|
||||
try:
|
||||
from django.contrib.postgres.search import TrigramDistance, TrigramSimilarity
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.postgres'})
|
||||
class TrigramTest(PostgreSQLTestCase):
|
||||
|
||||
Reference in New Issue
Block a user