Skip to content

Instantly share code, notes, and snippets.

@notanumber
Created October 20, 2009 13:19
Show Gist options
  • Save notanumber/214254 to your computer and use it in GitHub Desktop.
Save notanumber/214254 to your computer and use it in GitHub Desktop.
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