Browse files

Fixed #7243: Corrected some example code in the custom model fields d…

…ocumentation. Thanks to Norman Harman for the fix.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent ac858a2 commit 1ab16c7302a137075800048c310d6880f63a4210 @freakboy3742 freakboy3742 committed Aug 24, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/howto/custom-model-fields.txt
2 docs/howto/custom-model-fields.txt
@@ -491,7 +491,7 @@ accepted lookup types to ``exact`` and ``in``::
def get_db_prep_lookup(self, lookup_type, value):
# We only handle 'exact' and 'in'. All others are errors.
if lookup_type == 'exact':
- return self.get_db_prep_value(value)
+ return [self.get_db_prep_value(value)]
elif lookup_type == 'in':
return [self.get_db_prep_value(v) for v in value]

0 comments on commit 1ab16c7

Please sign in to comment.