def METHOD_NAME(func):
    """Decorates func such that django_debug_cleanup is run after func.
    Even if func raises an exception, the cleanup will be run.
    """
    def _cleanup(*args, **kwargs):
        try:
            return func(*args, **kwargs)
        finally:
            django_debug_cleanup()
    return wraps(func)(_cleanup)