def disable_for_loaddata(signal_handler):
    @wraps(signal_handler)
    def wrapper(*args, **kwargs):
        for fr in inspect.stack():
            if inspect.getmodulename(fr[1]) == 'loaddata':
                return  # pragma: no cover
        signal_handler(*args, **kwargs)

    return wrapper
Task reports view.
dataset/ETHPy150Open Fantomas42/django-blog-zinnia/zinnia/signals.py/disable_for_loaddata--crossover with--dataset/ETHPy150Open lukaszb/django-projector/projector/views/reports.py/task_reports