Ticket #12517: 12517.diff

File 12517.diff, 633 bytes (added by Tim Graham, 9 years ago)
  • docs/howto/custom-model-fields.txt

     
    560560        def get_prep_lookup(self, lookup_type, value):
    561561            # We only handle 'exact' and 'in'. All others are errors.
    562562            if lookup_type == 'exact':
    563                 return [self.get_prep_value(value)]
     563                return self.get_prep_value(value)
    564564            elif lookup_type == 'in':
    565565                return [self.get_prep_value(v) for v in value]
    566566            else:
Back to Top