From: jlaine Date: Wed, 19 May 2010 08:03:27 +0000 (+0000) Subject: support "in" filter X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=aa99c514ad0457d05e95f48de4b0c855a75b363e;p=matthijs%2Fupstream%2Fdjango-ldapdb.git support "in" filter git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@845 e071eeec-0327-468d-9b6a-08194a12b294 --- 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)