From f0dde230f3f806342c0617a98f6d555f79001a27 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 25 May 2012 18:44:28 -0400 Subject: [PATCH] [#27015121] forgot to add context to Pledgeview Seems to me there's refactoring that can be done with these two views! --- frontend/views.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/views.py b/frontend/views.py index d997bae3..d9a68210 100755 --- a/frontend/views.py +++ b/frontend/views.py @@ -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