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:33 +02:00 committed by GitHub
parent e99d27c127
commit 9da2a19367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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