Ticket #12517: 12517.diff
File 12517.diff, 633 bytes (added by , 15 years ago) |
---|
-
docs/howto/custom-model-fields.txt
560 560 def get_prep_lookup(self, lookup_type, value): 561 561 # We only handle 'exact' and 'in'. All others are errors. 562 562 if lookup_type == 'exact': 563 return [self.get_prep_value(value)]563 return self.get_prep_value(value) 564 564 elif lookup_type == 'in': 565 565 return [self.get_prep_value(v) for v in value] 566 566 else: