Ticket #7243: ticket_7243.diff

File ticket_7243.diff, 626 bytes (added by njharman, 16 years ago)
  • docs/custom_model_fields.txt

     
    472472        def get_db_prep_lookup(self, lookup_type, value):
    473473            # We only handle 'exact' and 'in'. All others are errors.
    474474            if lookup_type == 'exact':
    475                 return self.get_db_prep_value(value)
     475                return [self.get_db_prep_value(value)]
    476476            elif lookup_type == 'in':
    477477                return [self.get_db_prep_value(v) for v in value]
    478478            else:
Back to Top