From 73cbde63cf1d73b9fd819dcb2a91015765d04463 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 18 Nov 2012 20:34:43 +0100 Subject: [PATCH] clips too --- pandora/clip/managers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora/clip/managers.py b/pandora/clip/managers.py index 93044c04..a7fe0ec6 100644 --- a/pandora/clip/managers.py +++ b/pandora/clip/managers.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 +import unicodedata + from django.db.models import Q, Manager from django.conf import settings @@ -87,6 +89,8 @@ def parseCondition(condition, user): }.get(op, '__icontains')) key = str(key) + if isinstance(v, unicode): + v = unicodedata.normalize('NFKD', v).lower() if exclude: q = ~Q(**{key: v}) else: