From 1ab16c7302a137075800048c310d6880f63a4210 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 24 Aug 2008 09:25:19 +0000 Subject: [PATCH] Fixed #7243: Corrected some example code in the custom model fields documentation. Thanks to Norman Harman for the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8520 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/howto/custom-model-fields.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt index aa14c3cb4e..0cfb70112c 100644 --- a/docs/howto/custom-model-fields.txt +++ b/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] else: