def get_html_alternative(self, message):
        alternatives = dict((v, k) for k, v in message.alternatives)
        if 'text/html' in alternatives:
            return alternatives['text/html']
Return the html alternative, if present.
dataset/ETHPy150Open novafloss/django-mail-factory/mail_factory/views.py/MailPreviewMixin.get_html_alternative