diff --git a/pandora/annotation/managers.py b/pandora/annotation/managers.py index f76127dad..798433bca 100644 --- a/pandora/annotation/managers.py +++ b/pandora/annotation/managers.py @@ -92,7 +92,7 @@ def parseCondition(condition, user): key = str(key) if isinstance(v, unicode): v = unicodedata.normalize('NFKD', v) - if v not in case_sensitive_keys: + if k not in case_sensitive_keys: v = v.lower() if exclude: q = ~Q(**{key: v})