1
0
mirror of https://github.com/django/django.git synced 2025-07-19 09:09:13 +00:00

[1.9.x] Fixed code example in docs/howto/custom-lookups.txt

Backport of b3acf35f13aae57eb3c8340dd5ff7e61482e2537 from master
This commit is contained in:
vytisb 2016-05-06 15:26:07 +03:00 committed by Tim Graham
parent 90ea14a38a
commit 1dd567152d

View File

@ -296,7 +296,7 @@ would override ``get_lookup`` with something like::
dimension = int(lookup_name[1:]) dimension = int(lookup_name[1:])
except ValueError: except ValueError:
pass pass
finally: else:
return get_coordinate_lookup(dimension) return get_coordinate_lookup(dimension)
return super(CoordinatesField, self).get_lookup(lookup_name) return super(CoordinatesField, self).get_lookup(lookup_name)