|
|
|
@ -6,7 +6,7 @@ from django.views.generic import ListView, DetailView, TemplateView
|
|
|
|
|
|
|
|
|
|
from common.mixins import DatetimeSearchMixin |
|
|
|
|
from .models import Task, AdHoc, AdHocRunHistory, CeleryTask |
|
|
|
|
from common.permissions import SuperUserRequiredMixin |
|
|
|
|
from common.permissions import SuperUserRequiredMixin, AdminUserRequiredMixin |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TaskListView(SuperUserRequiredMixin, DatetimeSearchMixin, ListView): |
|
|
|
@ -121,6 +121,6 @@ class AdHocHistoryDetailView(SuperUserRequiredMixin, DetailView):
|
|
|
|
|
return super().get_context_data(**kwargs) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CeleryTaskLogView(SuperUserRequiredMixin, DetailView): |
|
|
|
|
class CeleryTaskLogView(AdminUserRequiredMixin, DetailView): |
|
|
|
|
template_name = 'ops/celery_task_log.html' |
|
|
|
|
model = CeleryTask |
|
|
|
|