def get_formatted_messages(formats, label, context):
    format_templates = {}
    for format in formats:
        # conditionally turn off autoescaping for .txt extensions in format
        if format.endswith(".txt"):
            context.autoescape = False
        format_templates[format] = render_to_string((
            'notification/%s/%s' % (label, format),
            'notification/%s' % format), context_instance=context)
    return format_templates
Returns a dictionary with the format identifier as the key. The values are
dataset/ETHPy150Open davemerwin/blue-channel/external_apps/notification/models.py/get_formatted_messages