diff options
| author | vytisb <vytis.banaitis@gmail.com> | 2016-05-06 15:26:07 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-05-06 08:26:20 -0400 |
| commit | 1dd567152d03f8a3110c48fda3ee6f331b7597d2 (patch) | |
| tree | 93d1f2a2ba1f183bba44e4aa063b1aff2d2cfa03 /docs/howto | |
| parent | 90ea14a38a1ec04761aa96093846725b015b4333 (diff) | |
[1.9.x] Fixed code example in docs/howto/custom-lookups.txt
Backport of b3acf35f13aae57eb3c8340dd5ff7e61482e2537 from master
Diffstat (limited to 'docs/howto')
| -rw-r--r-- | docs/howto/custom-lookups.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/howto/custom-lookups.txt b/docs/howto/custom-lookups.txt index 0f34534182..22b61fb2a7 100644 --- a/docs/howto/custom-lookups.txt +++ b/docs/howto/custom-lookups.txt @@ -296,7 +296,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) |
