Skip to content

Commit

Permalink
fix: key error
Browse files Browse the repository at this point in the history
  • Loading branch information
rhblind committed Jan 3, 2023
1 parent 339ddd4 commit fd2b72e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
)

Expand Down

0 comments on commit fd2b72e

Please sign in to comment.