*fix: payout not defined

This commit is contained in:
tkroenert 2012-04-17 17:59:06 +02:00
parent 442665fbfd
commit d4f263b1a5
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ def overview(request):
# create forms # create forms
form = TransactionForm() form = TransactionForm()
vform = VirtualTransactionForm() vform = VirtualTransactionForm()
state =None state = None
payway = "payin" payway = "payin"
if request.method == 'POST' and request.POST.has_key('_formtype'): if request.method == 'POST' and request.POST.has_key('_formtype'):
if request.POST['_formtype'] == "normal": if request.POST['_formtype'] == "normal":
@ -48,7 +48,7 @@ def overview(request):
else: else:
state = "verror" state = "verror"
return HttpResponseRedirect("state/%s/%s/" % (state,payway)) 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 @login_required