

def form_valid(self, form):
    form.save()
    messages.success(self.request, _('Your password has been successfully updated'))
    return super(UserPasswordUpdateView, self).form_valid(form)

dataset/ETHPy150Open ellmetha/django-machina/example_projects/vanilla/src/vanilla_project/views.py UserPasswordUpdateView.form_valid/original