sebastian-ardila / google-app-engine-django

Automatically exported from code.google.com/p/google-app-engine-django
Apache License 2.0
0 stars 0 forks source link

BaseModel instance doesn't have 'id' attribute #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a deprived instance of BaseModel class
2. save it
3. call MyClassInstance.id

What is the expected output? What do you see instead?
expect id attribute to return an integer. instead exception is raised

What version of the product are you using? On what operating system?
django 1.1
mac
helper r100

Please provide any additional information below.
calling the id attribute should be the equivalent of 
MyClassInstance.key().id(). We should set the 'id' attribute that after saving 
the object and after retrieving it back from DataStore.

Original issue reported on code.google.com by trung%ph...@gtempaccount.com on 31 Dec 2009 at 11:44