Ticket #10432: patch-10432-1.diff

File patch-10432-1.diff, 539 bytes (added by Pavel Anossov, 16 years ago)

a simple patch

  • django/db/models/sql/where.py

     
    166166                              extra), params)
    167167
    168168        if lookup_type == 'in':
    169             if not value_annot:
     169            if not value_annot or (not extra and not params):
    170170                raise EmptyResultSet
    171171            if extra:
    172172                return ('%s IN %s' % (field_sql, extra), params)
Back to Top