From: jlaine Date: Mon, 7 Sep 2009 17:02:04 +0000 (+0000) Subject: fix X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=afb1ad6158bb93a786db69c67d8d6260144f40c3;p=matthijs%2Fupstream%2Fdjango-ldapdb.git fix git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@663 e071eeec-0327-468d-9b6a-08194a12b294 --- diff --git a/ldapdb/models/query.py b/ldapdb/models/query.py index 367cd2c..a3a9608 100644 --- a/ldapdb/models/query.py +++ b/ldapdb/models/query.py @@ -88,7 +88,7 @@ class Query(BaseQuery): keys = [] for k in ordering: attr = self.model._meta.get_field(k).db_column - keys.append(x[1].get(attr, None).lower()) + keys.append(x[1].get(attr, '').lower()) return keys vals = sorted(vals, key=lambda x: getkey(x))