@login_required
def close_account(request):
    user = request.user

    if request.method == 'POST':
        form = CloseAccountForm(request.POST, user=user)

        if form.is_valid():

            user.is_active = False
            user.is_closed = True
            user.save()
            logout(request)

            return redirect(reverse('accounts:close-account-done'))

    else:
        form = CloseAccountForm(user=user)

    context = {
        'form': form,
    }

    return render(request, 'accounts/close_account.html', context)
Translates special prefixes.
dataset/ETHPy150Open nlhkabu/connect/connect/accounts/views.py/close_account--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/grid_engine.py/GridEngineServer._fix_path