Update {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/views.py

Co-Authored-By: Bruno Alla <browniebroke@users.noreply.github.com>
This commit is contained in:
2O4 2019-07-15 18:10:27 +02:00 committed by GitHub
parent c49acc64f9
commit e99d27c127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ class UserUpdateView(LoginRequiredMixin, UpdateView):
def form_valid(self, form): def form_valid(self, form):
form.save() form.save()
messages.add_message(self.request, messages.INFO, _("Infos succefully updated")) messages.add_message(self.request, messages.INFO, _("Infos successfully updated"))
return super(UserUpdateView, self).form_valid(form) return super(UserUpdateView, self).form_valid(form)