def has_key(self):
    return self.is_saved() or self._key or self._key_name
Determine if this model instance has a complete key.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/db/__init__.py/Model.has_key