Convert document trash view to CBV. Improve ConfirmView based CBVs.
This commit is contained in:
@@ -90,6 +90,5 @@ class StatisticQueueView(ConfirmView):
|
||||
args=(self.get_object().namespace.slug,)
|
||||
)
|
||||
|
||||
def post(self, request, *args, **kwargs):
|
||||
def view_action(self):
|
||||
task_execute_statistic.delay(slug=self.get_object().slug)
|
||||
return HttpResponseRedirect(self.get_post_action_redirect())
|
||||
|
||||
Reference in New Issue
Block a user