From 60074c2100cd36864b840ebee5091aa9d4dc9267 Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Mon, 4 May 2020 21:32:48 +0200
Subject: [PATCH] Fix selection of haystack index backend

---
 aleksis/core/util/search.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aleksis/core/util/search.py b/aleksis/core/util/search.py
index 22abef17c..5c8af9f86 100644
--- a/aleksis/core/util/search.py
+++ b/aleksis/core/util/search.py
@@ -6,9 +6,9 @@ from haystack import indexes
 Indexable = indexes.Indexable  # noqa
 
 if settings.HAYSTACK_SIGNAL_PROCESSOR == "celery_haystack.signals.CelerySignalProcessor":
-    from haystack.indexes import SearchIndex as BaseSearchIndex
-else:
     from celery_haystack.indexes import CelerySearchIndex as BaseSearchIndex
+else:
+    from haystack.indexes import SearchIndex as BaseSearchIndex
 
 
 class SearchIndex(BaseSearchIndex):
-- 
GitLab