Skip to content

Instantly share code, notes, and snippets.

@emlynoregan
Last active August 29, 2015 14:24
Show Gist options
  • Save emlynoregan/b395f459308edeb7ea41 to your computer and use it in GitHub Desktop.
Save emlynoregan/b395f459308edeb7ea41 to your computer and use it in GitHub Desktop.
class Greeting(ndb.Model):
...
def _post_put_hook(self, future):
# replace the document for this object in the relevant search index
@classmethod
def _post_delete_hook(cls, key, future):
# delete the document for this object from the relevant search index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment