From 74fba18f99d798420dde81fcf5c0c6efc9cc8bf4 Mon Sep 17 00:00:00 2001 From: Will O'Beirne Date: Fri, 8 Feb 2019 14:11:52 -0500 Subject: [PATCH] Fix contribution matching. Add deets to rfp detail admin. --- admin/src/components/RFPDetail/index.tsx | 3 +++ backend/grant/proposal/views.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/src/components/RFPDetail/index.tsx b/admin/src/components/RFPDetail/index.tsx index 56a74a5d..d6c5c8df 100644 --- a/admin/src/components/RFPDetail/index.tsx +++ b/admin/src/components/RFPDetail/index.tsx @@ -91,6 +91,9 @@ class RFPDetail extends React.Component { {renderDeetItem('created', formatDateSeconds(rfp.dateCreated))} {renderDeetItem('status', rfp.status)} {renderDeetItem('category', rfp.category)} + {renderDeetItem('matching', String(rfp.matching))} + {renderDeetItem('bounty', `${rfp.bounty} ZEC`)} + {renderDeetItem('dateCloses', rfp.dateCloses && formatDateSeconds(rfp.dateCloses))} {/* PROPOSALS */} diff --git a/backend/grant/proposal/views.py b/backend/grant/proposal/views.py index 4ac96171..eccee99c 100644 --- a/backend/grant/proposal/views.py +++ b/backend/grant/proposal/views.py @@ -163,7 +163,7 @@ def make_proposal_draft(rfp_id): return {"message": "The request this proposal was made for doesn’t exist"}, 400 proposal.category = rfp.category if rfp.matching: - proposal.matching = 1.0 + proposal.contribution_matching = 1.0 rfp.proposals.append(proposal) db.session.add(rfp)