

def charge_remaining(request, orderitem_id):
    'Given an orderitem_id, this returns a confirmation form.'
    try:
        orderitem = OrderItem.objects.get(pk=orderitem_id)
    except OrderItem.DoesNotExist:
        return bad_or_missing(request, _("The orderitem you have requested doesn't exist, or you don't have access to it."))
    amount = orderitem.product.customproduct.full_price
    data = {
        'orderitem': orderitem_id,
        'amount': amount,
    }
    form = CustomChargeForm(data)
    ctx = RequestContext(request, {
        'form': form,
    })
    return render_to_response('payment/admin/charge_remaining_confirm.html', context_instance=orderitem)

dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/payment/views/balance.py charge_remaining/VarMisuse@107/210 `ctx`->`orderitem`