Skip to content
Snippets Groups Projects
Commit 122ae3b4 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Add the transition email

parent 24778959
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,7 @@ class EmailAdapter(AdapterBase):
messages = {
MESSAGES.NEW_SUBMISSION: 'funds/email/confirmation.html',
MESSAGES.COMMENT: 'notify_comment',
MESSAGES.TRANSITION: 'funds/email/transition.html',
}
def notify_comment(self, **kwargs):
......@@ -164,7 +165,7 @@ class EmailAdapter(AdapterBase):
return render_to_string(template, kwargs)
def send_message(self, message, submission, **kwargs):
subject = submission.page.specific.subject or 'Thank you for your submission to Open Technology Fund'
subject = submission.page.specific.subject or 'Your application to Open Technology Fund: {submission.title}'.format(submission)
send_mail(
subject,
message,
......
{% extends "messages/email/base.html" %}
{% block content %}
Your application has been progressed from {old_phase.display_name} to {submission.phase}.
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment