diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-05-10 13:17:12 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-05-10 13:17:12 +0000 |
| commit | 9f230c7eeb28cc4a33f85f0e23259a275452c883 (patch) | |
| tree | 198d659c9505c299d50a04aadf0457fb59f73008 | |
| parent | b832e6130891b335cf36a78b29220f5535e56499 (diff) | |
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
| -rw-r--r-- | docs/howto/custom-model-fields.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt index b19504165e..90851459c1 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: |
