增加返回信息,操作删除权限

This commit is contained in:
曹前明 2022-06-02 14:13:27 +08:00
parent e7321aa0ce
commit c54f3842fa
1 changed files with 1 additions and 1 deletions

View File

@ -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