Fixed bug with GeoLocationField

This commit is contained in:
martin 2010-06-18 10:41:23 +08:00 committed by Florian Schlachter
parent 0512dd4c25
commit 6bfd6c322b

View File

@ -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