[#27015121] forgot to add context to Pledgeview

Seems to me there's refactoring that can be done with these two views!
pull/1/head
eric 2012-05-25 18:44:28 -04:00
parent d784715407
commit f0dde230f3
1 changed files with 9 additions and 1 deletions

View File

@ -578,7 +578,15 @@ class PledgeView(FormView):
except IndexError:
pubdate = 'unknown'
context.update({'redirect_to_modify_pledge':False, 'work':work,'campaign':campaign, 'premiums':premiums, 'form':form, 'premium_id':premium_id, 'faqmenu': 'pledge', 'pubdate':pubdate})
context.update({
'redirect_to_modify_pledge':False,
'work':work,'campaign':campaign,
'premiums':premiums, 'form':form,
'premium_id':premium_id,
'faqmenu': 'pledge',
'pubdate':pubdate,
'payment_processor':settings.PAYMENT_PROCESSOR,
})
# check whether the user already has an ACTIVE transaction for the given campaign.
# if so, we should redirect the user to modify pledge page