support "in" filter
[matthijs/upstream/django-ldapdb.git] / 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)