Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix update_index command
Artur Smęt3f324843107d
diff --git a/saleor/search/management/commands/update_index.py b/saleor/search/management/commands/update_index.pyindex 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 backendbackend_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 onlybackend_names = ['default']