title: App Engine - AttributeError: 'function' object has no attribute 'id'
body: <p>I'm using App Engine, SDK 1.6.3 with Python 2.7.</p>
  
  <p>I've created a model like this:</p>
  
  <pre><code>class MyModel(db.Model):
      name = db.StringProperty()
      website = db.StringProperty()
  </code></pre>
  
  <p>I can iterate and see everything except the Key id's.  For example, in the interactive shell I can run this:</p>
  
  <pre><code>from models import *
  list = MyModel.all()
  for p in list:
      print(p.name)
  </code></pre>
  
  <p>and it prints the name of every Entity.  But when I run this:</p>
  
  <pre><code>from models import *
  list = MyModel.all()
  for p in list:
      print(p.key.id)  [or p.key.name or p.key.app]
  </code></pre>
  
  <p>I get an AttributeError:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/admin/__init__.py", line 317, in post
      exec(compiled_code, globals())
    File "&lt;string&gt;", line 4, in &lt;module&gt;
  AttributeError: 'function' object has no attribute 'id'
  </code></pre>
  
  <p>Can anyone please help me??</p>