def render_to_message_response(*args, **kwargs):
    msg = kwargs.get("msg")
    del kwargs["msg"]
    return set_message_to(render_to_response(*args, **kwargs), msg)
Django's render_to_response with a LFS message.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/core/utils.py/render_to_message_response