Disables AUTO_UPDATE in PostgreSQL test for speed.

This commit is contained in:
Bertrand Bordage 2017-11-24 04:37:10 +01:00
parent 420f721631
commit d187bf4c75

View file

@ -170,6 +170,7 @@ if os.environ.get('DATABASE_ENGINE') == 'django.db.backends.postgresql':
INSTALLED_APPS += ('wagtail.contrib.postgres_search',)
WAGTAILSEARCH_BACKENDS['postgresql'] = {
'BACKEND': 'wagtail.contrib.postgres_search.backend',
'AUTO_UPDATE': False,
}
if 'ELASTICSEARCH_URL' in os.environ: