mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-23 10:49:31 +00:00
add success message when refunding AE account
This commit is contained in:
1 parent
2d492e0157
commit
2db46e3958
2 files changed
+8
-2
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user