Created
October 20, 2009 13:19
-
-
Save notanumber/214254 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
from haystack import indexes | |
class NoSignalSearchIndex(indexes.SearchIndex): | |
""" | |
A subclass of haystack's default SearchIndex that overrides the save | |
and delete signals to prevent them from firing | |
""" | |
def _setup_save(self, model): | |
pass | |
def _setup_delete(self, model): | |
pass | |
def _teardown_save(self, model): | |
pass | |
def _teardown_delete(self, model): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment