From fd2b72ee8afda5405cb3424010dd44b0fb003f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rolf=20H=C3=A5vard=20Blindheim?= Date: Tue, 3 Jan 2023 08:00:32 +0100 Subject: [PATCH] fix: key error --- tests/settings.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/settings.py b/tests/settings.py index a38c212..ed4af86 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -119,15 +119,15 @@ 'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchEngine' }) elif (5,) <= elasticsearch.__version__ <= (6,): - HAYSTACK_CONNECTIONS["elasticsearch"].update( + HAYSTACK_CONNECTIONS['default'].update( { - "ENGINE": "haystack.backends.elasticsearch5_backend.Elasticsearch5SearchEngine" + 'ENGINE': 'haystack.backends.elasticsearch5_backend.Elasticsearch5SearchEngine' } ) elif (7,) <= elasticsearch.__version__ <= (8,): - HAYSTACK_CONNECTIONS["elasticsearch"].update( + HAYSTACK_CONNECTIONS["default"].update( { - "ENGINE": "haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine" + 'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine' } )