support "in" filter
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Wed, 19 May 2010 08:03:27 +0000 (08:03 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Wed, 19 May 2010 08:03:27 +0000 (08:03 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@845 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/models/query.py

index 463ecf6b2305e0bb74975652801c2c536a817be6..f430286b65be5d14531e46a86b540eaa3a851ab6 100644 (file)
@@ -48,6 +48,8 @@ class Constraint(BaseConstraint):
             params = ["%s*" % value]
         elif lookup_type == 'exact':
             params = [value]
+        elif lookup_type == 'in':
+            params = [v for v in value]
         else:
             raise TypeError("Field has invalid lookup: %s" % lookup_type)