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

Fix the issue with the transition email rendering

parent a9a9981c
No related branches found
No related tags found
No related merge requests found
...@@ -153,8 +153,8 @@ class EmailAdapter(AdapterBase): ...@@ -153,8 +153,8 @@ class EmailAdapter(AdapterBase):
messages = { messages = {
MESSAGES.NEW_SUBMISSION: 'funds/email/confirmation.html', MESSAGES.NEW_SUBMISSION: 'funds/email/confirmation.html',
MESSAGES.COMMENT: 'notify_comment', MESSAGES.COMMENT: 'notify_comment',
MESSAGES.TRANSITION: 'funds/email/transition.html',
MESSAGES.DETERMINATION_OUTCOME: 'funds/email/determination.html', MESSAGES.DETERMINATION_OUTCOME: 'funds/email/determination.html',
MESSAGES.TRANSITION: 'messages/email/transition.html',
} }
def notify_comment(self, **kwargs): def notify_comment(self, **kwargs):
......
...@@ -4,7 +4,7 @@ Dear {{ submission.user.get_full_name|default:"applicant" }}, ...@@ -4,7 +4,7 @@ Dear {{ submission.user.get_full_name|default:"applicant" }},
You can access your application here: {{ request.scheme }}://{{ request.get_host }}{{ submission.get_absolute_url }} You can access your application here: {{ request.scheme }}://{{ request.get_host }}{{ submission.get_absolute_url }}
If you have any questions, please email us at info@opentechfund.org. If you have any questions, please leave a message on your application or email us at info@opentechfund.org.
Kind Regards, Kind Regards,
The OTF Team The OTF Team
...@@ -13,5 +13,4 @@ The OTF Team ...@@ -13,5 +13,4 @@ The OTF Team
Open Technology Fund Open Technology Fund
https://www.opentech.fund/ https://www.opentech.fund/
{% block post_signature_content %} {% block post_signature_content %}{% endblock %}
{% endblock %}
{% extends "messages/email/base.html" %} {% extends "messages/email/base.html" %}
{% block content %} {% block content %}
Your application has been progressed from {old_phase.display_name} to {submission.phase}. Your application has been progressed from {{ old_phase.display_name }} to {{ submission.phase }}.
{% endblock %} {% endblock %}
...@@ -38,7 +38,7 @@ class SubmissionListView(AllActivityContextMixin, SingleTableMixin, FilterView): ...@@ -38,7 +38,7 @@ class SubmissionListView(AllActivityContextMixin, SingleTableMixin, FilterView):
filterset_class = SubmissionFilter filterset_class = SubmissionFilter
def get_queryset(self): def get_queryset(self):
return self.filterset_class._meta.model.objects.active().current() return self.filterset_class._meta.model.objects.current()
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
active_filters = self.filterset.data active_filters = self.filterset.data
......
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