def METHOD_NAME(func):
    """ Enable csrf for specified view func
    """
    # USE_ENFORCE_CSRF_CHECKS=False is for tests
    if settings.USE_ENFORCE_CSRF_CHECKS:
        def wrapper(request, *args, **kwargs):
            return func(request, *args, **kwargs)
        wrapper._dont_enforce_csrf_checks = False
        return wrapper
    else:
        return func