only ask the donation for required amount [#21784207]]

pull/1/head
eric 2012-09-07 09:39:36 -04:00
parent c2636f5bba
commit 6bbd973f62
1 changed files with 3 additions and 1 deletions

View File

@ -744,7 +744,9 @@ class FundPledgeView(FormView):
context['transaction']=self.transaction context['transaction']=self.transaction
context['nonprofit'] = settings.NONPROFIT context['nonprofit'] = settings.NONPROFIT
# note that get_form_kwargs() will already have been called once # 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 return context
class NonprofitCampaign(FormView): class NonprofitCampaign(FormView):