Fix missing atomicity for handling forms and logs (might be the reason for Z#23178997) (#4755)

This commit is contained in:
Raphael Michel
2025-02-05 16:56:38 +01:00
committed by GitHub
parent 5d4b218aa6
commit 5d56cd3917
4 changed files with 33 additions and 0 deletions

View File

@@ -231,6 +231,7 @@ class UserSettings(UpdateView):
messages.error(self.request, _('Your changes could not be saved. See below for details.'))
return super().form_invalid(form)
@transaction.atomic
def form_valid(self, form):
messages.success(self.request, _('Your changes have been saved.'))