this is even more correct, and the tests pass
parent
8ce1550ea2
commit
9ae4ce42da
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue