Browse Source

Fixed code example in docs/howto/custom-lookups.txt

vytisb 9 years ago
parent
commit
b3acf35f13
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/howto/custom-lookups.txt

+ 1 - 1
docs/howto/custom-lookups.txt

@@ -292,7 +292,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)