Issues getting DateTimeProperty() auto_now_add
and auto_now
attributes to work
#137
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I am having problems getting
auto_now_add
andauto_now
to work.As I understand it should assign appropriate values on inserts and and updates of the entity, I don't have to pass any values to it manually.
However I cannot get it to work.
Example when trying to create an Entity, put it to datastore and retrieve the same Entity based on it's key that was returned during the
put()
Debug output
As you can see from the logs
created_at
andupdated_at
values are bothNone
even though both of the fields had eitherauto_now_add
orauto_now
set to True.The text was updated successfully, but these errors were encountered: