this is even more correct, and the tests pass

pull/1/head
eric 2014-09-12 10:21:06 -04:00
parent 8ce1550ea2
commit 9ae4ce42da
1 changed files with 3 additions and 4 deletions

View File

@ -1301,8 +1301,10 @@ class FundView(FormView):
if kwargs.has_key('data'):
data = kwargs['data'].copy()
kwargs['data'] = data
else:
data = {}
kwargs['initial'] = data
data.update(
{'preapproval_amount':self.transaction.needed_amount,
@ -1310,9 +1312,6 @@ class FundView(FormView):
'work_id':self.transaction.campaign.work.id,
'title':self.transaction.campaign.work.title}
)
kwargs['initial'] = data
return kwargs
def get_context_data(self, **kwargs):