[paperwork] Move email templates to subfolder
This commit is contained in:
parent
ce2f656805
commit
be4344f956
@ -27,7 +27,7 @@ def make_multipart_email(subject, html_body, to):
|
|||||||
|
|
||||||
|
|
||||||
def make_department_email(department, certifications):
|
def make_department_email(department, certifications):
|
||||||
template = loader.get_template("paperwork/department_certifications_email.dj.html")
|
template = loader.get_template("paperwork/email/department_certifications.dj.html")
|
||||||
shop_leads = Member.objects.filter(
|
shop_leads = Member.objects.filter(
|
||||||
flags__type="label", flags__name="Shop Lead: " + department
|
flags__type="label", flags__name="Shop Lead: " + department
|
||||||
).values_list("first_name", "account_name", "email", named=True)
|
).values_list("first_name", "account_name", "email", named=True)
|
||||||
@ -60,7 +60,7 @@ def department_emails(ordered_queryset):
|
|||||||
|
|
||||||
|
|
||||||
def make_member_email(member, certifications):
|
def make_member_email(member, certifications):
|
||||||
template = loader.get_template("paperwork/member_certifications_email.dj.html")
|
template = loader.get_template("paperwork/email/member_certifications.dj.html")
|
||||||
|
|
||||||
html_body = template.render({"member": member, "certifications": certifications})
|
html_body = template.render({"member": member, "certifications": certifications})
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ def member_emails(ordered_queryset):
|
|||||||
|
|
||||||
|
|
||||||
def admin_email(ordered_queryset):
|
def admin_email(ordered_queryset):
|
||||||
template = loader.get_template("paperwork/admin_certifications_email.dj.html")
|
template = loader.get_template("paperwork/email/admin_certifications.dj.html")
|
||||||
html_body = template.render({"certifications": ordered_queryset})
|
html_body = template.render({"certifications": ordered_queryset})
|
||||||
|
|
||||||
return make_multipart_email(
|
return make_multipart_email(
|
||||||
|
Loading…
Reference in New Issue
Block a user