

def form_valid(self, form):
    user = self.request.user
    user.delete()
    logout(user.request)
    messages.success(self.request, _('Your account has been removed'))
    return HttpResponseRedirect(reverse('forum:index'))

dataset/ETHPy150Open ellmetha/django-machina/example_projects/vanilla/src/vanilla_project/views.py UserDeleteView.form_valid/VarMisuse@28/30 `self`->`user`