删除权限
This commit is contained in:
parent
b9e66f4bd7
commit
9332e5fc34
|
|
@ -99,7 +99,7 @@ def cal_count(qtask, org):
|
|||
qorg.save()
|
||||
|
||||
class QActionViewSet(PageOrNot, ListModelMixin, DestroyModelMixin, RetrieveModelMixin,GenericViewSet):
|
||||
perms_map = {'get': 'qtask_view', 'post': 'qaction_delete'}
|
||||
perms_map = {'get': 'qtask_view', 'delete': 'qaction_delete'}
|
||||
queryset = QAction.objects.select_related('file', 'atype', 'afield', 'qtask', 'belong_dept', 'create_by')
|
||||
filterset_fields = ['qtask', 'belong_dept', 'atype', 'afield']
|
||||
serializer_class = QActionListSerializer
|
||||
|
|
|
|||
Loading…
Reference in New Issue