Created
August 23, 2011 13:22
-
-
Save winhamwr/1165086 to your computer and use it in GitHub Desktop.
Stop a signal from running on a fixture-style load
This file contains hidden or 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
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