From aa99c514ad0457d05e95f48de4b0c855a75b363e Mon Sep 17 00:00:00 2001 From: jlaine Date: Wed, 19 May 2010 08:03:27 +0000 Subject: [PATCH] support "in" filter git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@845 e071eeec-0327-468d-9b6a-08194a12b294 --- ldapdb/models/query.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ldapdb/models/query.py b/ldapdb/models/query.py index 463ecf6..f430286 100644 --- a/ldapdb/models/query.py +++ b/ldapdb/models/query.py @@ -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) -- 2.30.2