Author: russellm
Date: 2008-08-24 04:25:19 -0500 (Sun, 24 Aug 2008)
New Revision: 8520

Modified:
   django/trunk/docs/howto/custom-model-fields.txt
Log:
Fixed #7243: Corrected some example code in the custom model fields 
documentation. Thanks to Norman Harman for the fix.

Modified: django/trunk/docs/howto/custom-model-fields.txt
===================================================================
--- django/trunk/docs/howto/custom-model-fields.txt     2008-08-24 09:19:18 UTC 
(rev 8519)
+++ django/trunk/docs/howto/custom-model-fields.txt     2008-08-24 09:25:19 UTC 
(rev 8520)
@@ -491,7 +491,7 @@
         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]
             else:


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to