Skip to content

Instantly share code, notes, and snippets.

@emlynoregan
Created July 2, 2015 03:48
Show Gist options
  • Save emlynoregan/caf74540a63f9d2be5fe to your computer and use it in GitHub Desktop.
Save emlynoregan/caf74540a63f9d2be5fe 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