Created
July 2, 2015 03:48
-
-
Save emlynoregan/caf74540a63f9d2be5fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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