From c54f3842faac8f5fc5920ebb11219c407abd58cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Thu, 2 Jun 2022 14:13:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BF=94=E5=9B=9E=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=EF=BC=8C=E6=93=8D=E4=BD=9C=E5=88=A0=E9=99=A4=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/apps/ability/views_qtask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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