diff --git a/gas/views.py b/gas/views.py index 37b98a3..7cf9cd6 100644 --- a/gas/views.py +++ b/gas/views.py @@ -280,7 +280,7 @@ class GASDeleteView(GASMixin, DeleteView): }) return ctx - def delete(self, request, *args, **kwargs): - response = super().delete(request, *args, **kwargs) - messages.add_message(request, messages.SUCCESS, self.get_deleted_text()) + def form_valid(self, form): + response = super().form_valid(form) + messages.add_message(self.request, messages.SUCCESS, self.get_deleted_text()) return response