

def get_template_part(self, part, lang=None):
    'Return a mail part\n\n          * subject.txt\n          * body.txt\n          * body.html\n\n        Try in order:\n\n        1/ localized: mails/{{ template_name }}/fr/\n        2/ fallback:  mails/{{ template_name }}/\n\n        '
    templates = []
    localized = join('mails', self.template_name, (lang or self.lang), part)
    templates.append(localized)
    fallback = join('mails', self.template_name, part)
    templates.append(fallback)
    return templates

dataset/ETHPy150Open novafloss/django-mail-factory/mail_factory/mails.py BaseMail.get_template_part/original