From 6bbd973f62dbea48e3662e31a1418a297c232adf Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 7 Sep 2012 09:39:36 -0400 Subject: [PATCH] only ask the donation for required amount [#21784207]] --- frontend/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/views.py b/frontend/views.py index 926d2d74..d6ce7d07 100755 --- a/frontend/views.py +++ b/frontend/views.py @@ -744,7 +744,9 @@ class FundPledgeView(FormView): context['transaction']=self.transaction context['nonprofit'] = settings.NONPROFIT # note that get_form_kwargs() will already have been called once - context['donate_form'] = DonateForm(**self.get_form_kwargs()) + donate_args=self.get_form_kwargs() + donate_args['data']['preapproval_amount']=context['needed'] + context['donate_form'] = DonateForm(**donate_args) return context class NonprofitCampaign(FormView):