Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jan 18, 2016 · 0 comments
Open

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

GoogleCodeExporter opened this issue Jan 18, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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%[email protected] on 31 Dec 2009 at 11:44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant