From 6c383ab0f72ec711f2ba32056eeac39fe2ebc53f Mon Sep 17 00:00:00 2001
From: Vaibhav Mule <vaibhavmule135@gmail.com>
Date: Tue, 12 May 2020 10:03:29 +0530
Subject: [PATCH] create DRAFT variable

---
 hypha/apply/funds/workflow.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/hypha/apply/funds/workflow.py b/hypha/apply/funds/workflow.py
index 329205a0b..f9c654f1d 100644
--- a/hypha/apply/funds/workflow.py
+++ b/hypha/apply/funds/workflow.py
@@ -190,12 +190,13 @@ Concept = Stage('Concept', False)
 
 Proposal = Stage('Proposal', True)
 
+DRAFT = 'draft'
 
 INITIAL_STATE = 'in_discussion'
 
 SingleStageDefinition = [
     {
-        'draft': {
+        DRAFT: {
             'transitions': {
                 INITIAL_STATE: {
                     'display': 'Submit',
@@ -308,7 +309,7 @@ SingleStageDefinition = [
 
 SingleStageExternalDefinition = [
     {
-        'ext_draft': {
+        DRAFT: {
             'transitions': {
                 INITIAL_STATE: {
                     'display': 'Submit',
@@ -452,7 +453,7 @@ SingleStageExternalDefinition = [
 
 SingleStageCommunityDefinition = [
     {
-        'com_draft': {
+        DRAFT: {
             'transitions': {
                 INITIAL_STATE: {
                     'display': 'Submit',
@@ -620,7 +621,7 @@ SingleStageCommunityDefinition = [
 
 DoubleStageDefinition = [
     {
-        'concept_draft': {
+        DRAFT: {
             'transitions': {
                 INITIAL_STATE: {
                     'display': 'Submit',
-- 
GitLab