human
Complete this python program:
def disable_for_loaddata(signal_handler):
assistant
#Here is the Python code you requested.

    """Decorator for disabling signals sent by \post_save\
    on loaddata command.
    http://code.djangoproject.com/ticket/8399
    """
    @wraps(signal_handler)
    def wrapper(*args, **kwargs):
        for fr in inspect.stack():
            if (inspect.getmodulename(fr[1]) == 'loaddata'):
                return
        signal_handler(*args, **kwargs)
    return wrapper