*fix: payout not defined
This commit is contained in:
parent
442665fbfd
commit
d4f263b1a5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue