fix
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 7 Sep 2009 17:02:04 +0000 (17:02 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 7 Sep 2009 17:02:04 +0000 (17:02 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@663 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/models/query.py

index 367cd2cec1eadae0cdecc06d241f5f27bf0ed860..a3a960886050664ae035384e3a9a9d10ac986043 100644 (file)
@@ -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))