Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #12517 -- Corrected get_prep_lookup example in custom field doc…

…s. Thanks to for the report.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9f230c7eeb28cc4a33f85f0e23259a275452c883 1 parent b832e61
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/howto/custom-model-fields.txt
2  docs/howto/custom-model-fields.txt
@@ -582,7 +582,7 @@ accepted lookup types to ``exact`` and ``in``::
def get_prep_lookup(self, lookup_type, value):
# We only handle 'exact' and 'in'. All others are errors.
if lookup_type == 'exact':
- return [self.get_prep_value(value)]
+ return self.get_prep_value(value)
elif lookup_type == 'in':
return [self.get_prep_value(v) for v in value]
Please sign in to comment.
Something went wrong with that request. Please try again.