Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix update_index command

Artur Smęt3f324843107d
diff --git a/saleor/search/management/commands/update_index.py b/saleor/search/management/commands/update_index.py
index 338a1cfdbc..58560f1cfd 100644
--- a/saleor/search/management/commands/update_index.py
+++ b/saleor/search/management/commands/update_index.py
@@ -108,9 +108,9 @@ class Command(BaseCommand):
if options['backend_name']:
# index only the passed backend
backend_names = [options['backend_name']]
- elif hasattr(settings, 'WAGTAILSEARCH_BACKENDS'):
+ elif hasattr(settings, 'SEARCH_BACKENDS'):
# index all backends listed in settings
- backend_names = settings.WAGTAILSEARCH_BACKENDS.keys()
+ backend_names = settings.SEARCH_BACKENDS.keys()
else:
# index the 'default' backend only
backend_names = ['default']