From d4f263b1a57f3becb14e83b6e76c366e2afd9925 Mon Sep 17 00:00:00 2001 From: tkroenert Date: Tue, 17 Apr 2012 17:59:06 +0200 Subject: [PATCH] *fix: payout not defined --- k4ever/transaction/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k4ever/transaction/views.py b/k4ever/transaction/views.py index ccc4aa4..54bc963 100644 --- a/k4ever/transaction/views.py +++ b/k4ever/transaction/views.py @@ -23,7 +23,7 @@ def overview(request): # create forms form = TransactionForm() vform = VirtualTransactionForm() - state =None + state = None payway = "payin" if request.method == 'POST' and request.POST.has_key('_formtype'): if request.POST['_formtype'] == "normal": @@ -48,7 +48,7 @@ def overview(request): else: state = "verror" return HttpResponseRedirect("state/%s/%s/" % (state,payway)) - return render_to_response("transaction/overview.html", {'history': history, 'vhistory': vhistory, 'form': form, 'transacted': False, 'payout': payout, 'error': False, 'vform': vform, 'vtransacted': False, 'verror': False}, RequestContext(request)) + return render_to_response("transaction/overview.html", {'history': history, 'vhistory': vhistory, 'form': form, 'transacted': False, 'payout': None, 'error': False, 'vform': vform, 'vtransacted': False, 'verror': False}, RequestContext(request)) @login_required