Fixed bug with GeoLocationField
This commit is contained in:
parent
0512dd4c25
commit
6bfd6c322b
1 changed files with 1 additions and 1 deletions
|
|
@ -388,7 +388,7 @@ class GeoLocationField(DictField):
|
||||||
return {'x': value[0], 'y': value[1]}
|
return {'x': value[0], 'y': value[1]}
|
||||||
|
|
||||||
def to_python(self, value):
|
def to_python(self, value):
|
||||||
return value.keys()
|
return (value['x'], value['y'])
|
||||||
|
|
||||||
class ReferenceField(BaseField):
|
class ReferenceField(BaseField):
|
||||||
"""A reference to a document that will be automatically dereferenced on
|
"""A reference to a document that will be automatically dereferenced on
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue