[1.8.x] Fixed code example in docs/howto/custom-lookups.txt
Backport of b3acf35f13aae57eb3c8340dd5ff7e61482e2537 from master
This commit is contained in:
parent
74a2bbf072
commit
163972eb61
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user