diff --git a/server/apps/ability/views_qtask.py b/server/apps/ability/views_qtask.py index d7d361a..7beafa5 100644 --- a/server/apps/ability/views_qtask.py +++ b/server/apps/ability/views_qtask.py @@ -100,7 +100,7 @@ def cal_count(qtask, org): class QActionViewSet(PageOrNot, ListModelMixin, DestroyModelMixin, RetrieveModelMixin,GenericViewSet): perms_map = {'get': 'qtask_view', 'post': 'qaction_delete'} - queryset = QAction.objects.select_related('file', 'atype', 'afield', 'qtask', 'belong_dept') + queryset = QAction.objects.select_related('file', 'atype', 'afield', 'qtask', 'belong_dept', 'create_by') filterset_fields = ['qtask', 'belong_dept', 'atype', 'afield'] serializer_class = QActionListSerializer