transaction.commit()
return render_to_response('template.html', context_instance=RequestContext(
    request, my_ctx))

@transaction.commit_on_success
def my_context_processor(request):
    pass
Django Transaction managed block ended with pending COMMIT/ROLLBACK