mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
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:
parent
e99d27c127
commit
9da2a19367
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user