From 9c1b82c3dedf2652c70b2eb035abdd0acd4e3928 Mon Sep 17 00:00:00 2001
From: sandeepsajan0 <sandeepsajan0@gmail.com>
Date: Fri, 13 May 2022 18:03:45 +0530
Subject: [PATCH] Use Proposal stage instead of ConceptProposal workflow in
 determination message template

---
 hypha/apply/determinations/models.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hypha/apply/determinations/models.py b/hypha/apply/determinations/models.py
index 9807ac669..7d2187224 100644
--- a/hypha/apply/determinations/models.py
+++ b/hypha/apply/determinations/models.py
@@ -15,7 +15,7 @@ from wagtail.contrib.settings.models import BaseSetting, register_setting
 from wagtail.core.fields import RichTextField, StreamField
 
 from hypha.apply.funds.models.mixins import AccessFormData
-from hypha.apply.funds.workflow import Concept, ConceptProposal, Request
+from hypha.apply.funds.workflow import Concept, Proposal, Request
 
 from .blocks import (
     DeterminationBlock,
@@ -199,7 +199,7 @@ class DeterminationMessageSettings(BaseSetting):
 
     def get_for_stage(self, stage_name):
         message_templates = {}
-        if stage_name in [Request.name, Concept.name, ConceptProposal.name]:
+        if stage_name in [Request.name, Concept.name, Proposal.name]:
             prefix = f"{stage_name.lower()}_"
         else:
             # Use Request's message templates for remaining workflows
-- 
GitLab