Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…ocumentation. Thanks to Norman Harman for the fix.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8520 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1ab16c7302a137075800048c310d6880f63a4210 1 parent ac858a2
Russell Keith-Magee authored August 24, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/howto/custom-model-fields.txt
2  docs/howto/custom-model-fields.txt
@@ -491,7 +491,7 @@ accepted lookup types to ``exact`` and ``in``::
491 491
         def get_db_prep_lookup(self, lookup_type, value):
492 492
             # We only handle 'exact' and 'in'. All others are errors.
493 493
             if lookup_type == 'exact':
494  
-                return self.get_db_prep_value(value)
  494
+                return [self.get_db_prep_value(value)]
495 495
             elif lookup_type == 'in':
496 496
                 return [self.get_db_prep_value(v) for v in value]
497 497
             else:

0 notes on commit 1ab16c7

Please sign in to comment.
Something went wrong with that request. Please try again.