mirror of
https://github.com/django/django.git
synced 2025-03-26 09:10:50 +00:00
Fixed code example in docs/howto/custom-lookups.txt
This commit is contained in:
parent
3b383085fb
commit
b3acf35f13
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user