From 163972eb61d1294f5582fd5eb23763aac04e777d Mon Sep 17 00:00:00 2001 From: vytisb Date: Fri, 6 May 2016 15:26:07 +0300 Subject: [PATCH] [1.8.x] Fixed code example in docs/howto/custom-lookups.txt Backport of b3acf35f13aae57eb3c8340dd5ff7e61482e2537 from master --- docs/howto/custom-lookups.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/howto/custom-lookups.txt b/docs/howto/custom-lookups.txt index 1878a65058..144bd7c70a 100644 --- a/docs/howto/custom-lookups.txt +++ b/docs/howto/custom-lookups.txt @@ -307,7 +307,7 @@ would override ``get_lookup`` with something like:: dimension = int(lookup_name[1:]) except ValueError: pass - finally: + else: return get_coordinate_lookup(dimension) return super(CoordinatesField, self).get_lookup(lookup_name)