changeset 1696 | 7b120f7f9a7a |
parent 1694 | d388ff2fbe90 |
child 1780 | 210ab3d5d6ea |
--- a/app/soc/logic/models/base.py Fri Mar 06 19:06:22 2009 +0000 +++ b/app/soc/logic/models/base.py Fri Mar 06 22:30:12 2009 +0000 @@ -317,6 +317,8 @@ query = db.Query(self._model) for key, value in filter.iteritems(): + if isinstance(value, list) and len(value) == 1: + value = value[0] if isinstance(value, list): op = '%s IN' % key query.filter(op, value)