From 319dfaa181221bec6f9fd2c0605d6337ce814971 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Fri, 27 Jul 2018 15:30:38 +0100 Subject: [PATCH] Fix the issue with the transition email rendering --- opentech/apply/activity/messaging.py | 2 +- opentech/apply/activity/templates/messages/email/base.html | 5 ++--- .../apply/activity/templates/messages/email/transition.html | 2 +- opentech/apply/funds/views.py | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/opentech/apply/activity/messaging.py b/opentech/apply/activity/messaging.py index 02d631eb8..c41ca6c51 100644 --- a/opentech/apply/activity/messaging.py +++ b/opentech/apply/activity/messaging.py @@ -153,8 +153,8 @@ class EmailAdapter(AdapterBase): messages = { MESSAGES.NEW_SUBMISSION: 'funds/email/confirmation.html', MESSAGES.COMMENT: 'notify_comment', - MESSAGES.TRANSITION: 'funds/email/transition.html', MESSAGES.DETERMINATION_OUTCOME: 'funds/email/determination.html', + MESSAGES.TRANSITION: 'messages/email/transition.html', } def notify_comment(self, **kwargs): diff --git a/opentech/apply/activity/templates/messages/email/base.html b/opentech/apply/activity/templates/messages/email/base.html index eb070ca5c..99ea0b562 100644 --- a/opentech/apply/activity/templates/messages/email/base.html +++ b/opentech/apply/activity/templates/messages/email/base.html @@ -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 }} -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, The OTF Team @@ -13,5 +13,4 @@ The OTF Team Open Technology Fund https://www.opentech.fund/ -{% block post_signature_content %} -{% endblock %} +{% block post_signature_content %}{% endblock %} diff --git a/opentech/apply/activity/templates/messages/email/transition.html b/opentech/apply/activity/templates/messages/email/transition.html index 7bee07e66..b11b6919c 100644 --- a/opentech/apply/activity/templates/messages/email/transition.html +++ b/opentech/apply/activity/templates/messages/email/transition.html @@ -1,5 +1,5 @@ {% extends "messages/email/base.html" %} {% 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 %} diff --git a/opentech/apply/funds/views.py b/opentech/apply/funds/views.py index 4a2c4ed1f..fa4b9c36f 100644 --- a/opentech/apply/funds/views.py +++ b/opentech/apply/funds/views.py @@ -38,7 +38,7 @@ class SubmissionListView(AllActivityContextMixin, SingleTableMixin, FilterView): filterset_class = SubmissionFilter 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): active_filters = self.filterset.data -- GitLab