From 697fee8c60a9e98886b0ab0d9ede111e28f310a9 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 1 Dec 2019 15:31:05 +0100 Subject: [PATCH] fix key_config --- pandora/document/managers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/document/managers.py b/pandora/document/managers.py index 8bbb6c1f..fa0cd64a 100644 --- a/pandora/document/managers.py +++ b/pandora/document/managers.py @@ -71,7 +71,7 @@ def buildCondition(k, op, v, user, exclude=False, owner=None): key_type = get_key_type(k) - key_config = (utils.get_by_id(settings.CONFIG['documentKeys'], k) or {'type': 'string'}).get('type') + key_config = (utils.get_by_id(settings.CONFIG['documentKeys'], k) or {'type': 'string'}) facet_keys = models.Document.facet_keys if k == 'id':