Skip to content

Instantly share code, notes, and snippets.

@winhamwr
Created August 23, 2011 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winhamwr/1165086 to your computer and use it in GitHub Desktop.
Save winhamwr/1165086 to your computer and use it in GitHub Desktop.
Stop a signal from running on a fixture-style load
def my_signal_handler(sender, instance, raw, **kwargs):
if raw:
# This is a fixture-style load. Don't run the handler
return
print "totally handling a signal"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment