Fixed bug with GeoLocationField
This commit is contained in:
parent
0512dd4c25
commit
6bfd6c322b
@ -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…
x
Reference in New Issue
Block a user