straight55b / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

datetimeproperty which auto_now_add is true doesnot be saved when using create_object #251

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.define a model with two datetimeproperty(one named 'created' with 
auto_now_add is true, another one named 'updated' with auto_now is true)
2.use create_object of generic views to show the create view.
button's html: <input type="submit" name="submit" value="Create" 
id="create_submit">
3.input something and press the button "Create"

What is the expected output? What do you see instead?
A entity of this model should be saved to datastore with correct created 
datetime and updated datetime. but actually, only updated value is correct, 
value of created is always None.

What version of the product are you using? On what operating system?
GAE1.2.8 + AEP with django 1.1

Please provide any additional information below.

Original issue reported on code.google.com by j008...@gmail.com on 18 Dec 2009 at 7:06

GoogleCodeExporter commented 9 years ago
i got the same problem

Original comment by NTTDoCoM...@gmail.com on 30 Oct 2010 at 1:23