@login_required
@app_view
@use_master
@json_view
def pay_status(request, addon, contrib_uuid):
 qs = Contribution.objects.filter(uuid=contrib_uuid, addon__addonpurchase__user=request.user, type=mkt.CONTRIB_PURCHASE)
 return {'status': ('complete' if qs.exists() else 'incomplete')}

@ login_required @ app_view @ use_master @ json_view def pay_status ( request , addon , contrib_uuid ) : qs = Contribution . objects . filter ( uuid = contrib_uuid , addon__addonpurchase__user = request . user , type = mkt . CONTRIB_PURCHASE ) return { 'status' : ( 'complete' if qs . exists ( ) else 'incomplete' ) }
return json dict of {status: complete|incomplete} .