heynemann / motorengine

Motorengine is a port of MongoEngine for Tornado.
http://motorengine.readthedocs.org
204 stars 67 forks source link

Update datetime_field.py #92

Closed veeloox closed 9 years ago

veeloox commented 9 years ago

auto_now_on_update return stored date instead of datetime.now()

coveralls commented 9 years ago

Coverage Status

Coverage remained the same at 93.7% when pulling 0ab9a823abe1a0f8261fdb60697b6e79442a5cc5 on veeloox:veeloox-datetime_field-patch into 7ec91148adc7b39298c4a4c432f8110c997cafa5 on heynemann:master.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same at 93.7% when pulling 0ab9a823abe1a0f8261fdb60697b6e79442a5cc5 on veeloox:veeloox-datetime_field-patch into 7ec91148adc7b39298c4a4c432f8110c997cafa5 on heynemann:master.

Rey8d01 commented 8 years ago

Really? Every time calling to_son() receive a new time? Even if you do not save (update) the document? That's not true.