add success message when refunding AE account

This commit is contained in:
imperosol committed 2026-10-21 16:34:12 +02:00
1 parent 2d492e0157
commit 2db46e3958
2 files changed
+8 -2

No files matched your search

+2 -1
View File
@@ -408,11 +408,12 @@ class CounterRefillingListView(
return super().get_context_data(**kwargs) | {"counter": self.counter}
class RefoundAccountView(UserPassesTestMixin, FormView):
class RefoundAccountView(UserPassesTestMixin, SuccessMessageMixin, FormView):
"""Create a selling with the same amount as the current user money."""
template_name = "counter/refound_account.jinja"
form_class = CloseCustomerAccountForm
success_message = _("%(user)s's AE account has been emptied")
def test_func(self):
return self.request.user.is_root or self.request.user.is_in_group(