From 5efd7eadc67ba46bdd917f0c409b9b059d2149c9 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 2 Dec 2019 19:11:40 +0100 Subject: [PATCH] fix has_fulltext_key check --- pandora/document/fulltext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/document/fulltext.py b/pandora/document/fulltext.py index 6779113c..e3e665cc 100644 --- a/pandora/document/fulltext.py +++ b/pandora/document/fulltext.py @@ -36,7 +36,7 @@ class FulltextMixin: return self.data.get('text', '') return '' - def has_fulltext_key(): + def has_fulltext_key(self): return bool([k for k in settings.CONFIG['documentKeys'] if k.get('fulltext')]) def delete_fulltext(self):