Ticket #7243: ticket_7243.diff
File ticket_7243.diff, 626 bytes (added by , 16 years ago) |
---|
-
docs/custom_model_fields.txt
472 472 def get_db_prep_lookup(self, lookup_type, value): 473 473 # We only handle 'exact' and 'in'. All others are errors. 474 474 if lookup_type == 'exact': 475 return self.get_db_prep_value(value)475 return [self.get_db_prep_value(value)] 476 476 elif lookup_type == 'in': 477 477 return [self.get_db_prep_value(v) for v in value] 478 478 else: