From 9f230c7eeb28cc4a33f85f0e23259a275452c883 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 10 May 2010 13:17:12 +0000 Subject: [PATCH] Fixed #12517 -- Corrected get_prep_lookup example in custom field docs. Thanks to django@pressure.net.nz for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13213 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 b19504165ec..90851459c14 100644 --- a/docs/howto/custom-model-fields.txt +++ b/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] else: