fix has_fulltext_key check

This commit is contained in:
j 2019-12-02 19:11:40 +01:00
parent a0b3a144c6
commit 5efd7eadc6

View file

@ -36,7 +36,7 @@ class FulltextMixin:
return self.data.get('text', '') return self.data.get('text', '')
return '' return ''
def has_fulltext_key(): def has_fulltext_key(self):
return bool([k for k in settings.CONFIG['documentKeys'] if k.get('fulltext')]) return bool([k for k in settings.CONFIG['documentKeys'] if k.get('fulltext')])
def delete_fulltext(self): def delete_fulltext(self):